Skip to content

Complete hf mfu format command - #3549

Open
0x6r1an0y wants to merge 5 commits into
RfidResearchGroup:masterfrom
0x6r1an0y:20260823-mfuformat
Open

Complete hf mfu format command#3549
0x6r1an0y wants to merge 5 commits into
RfidResearchGroup:masterfrom
0x6r1an0y:20260823-mfuformat

Conversation

@0x6r1an0y

Copy link
Copy Markdown
Contributor

Formats a MIFARE Ultralight / NTAG tag for NDEF: writes the Capability Container and an empty
NDEF message. Needed before hf mfu ndefwrite will touch a tag. nfc type2 format alias added.

hf mfu format
hf mfu format -v
hf mfu format --erase
hf mfu format -k FFFFFFFF
hf mfu format -d E1101200 --force

Per-type values and data sheet citations: doc/mfu_ndef_format_notes.md.

@iceman1001

Copy link
Copy Markdown
Collaborator

Nice,
how ever this shouldn't be in "hf mfu" it should only be in "nfc type2" since format would give the wrong impression you are wiping or preparing a tag normally. Not to mention "hf mfu" is starting to have too many commands.

@0x6r1an0y

0x6r1an0y commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

You're right about the naming. Would hf mfu ndefformat work instead? That matches what the other chip trees already do hf 14a ndefformat, hf mf ndefformat, hf mfp ndefformat and hf mfu is currently the only one with ndefread/ndefwrite but no ndefformat. The ndef prefix makes the scope obvious without relying on the tree name for context.

nfc type2 format stays either way. If you'd still rather have it only there, I'll drop the hf mfu side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants