Search code examples
mifareapducontactless-smartcard

MIFARE DESFire EV1 content removal


Is there a way to reset a DESFire card to its original state? Any command to format and remove all content?

I've read that DeleteApplication apdu command removes the application and its files but the space remains unusable.

thank you.


Solution

  • There is the FormatPICC command.
    It deletes all Applications and Files and frees the eeprom space.
    Command byte is 0xFC, you need prior PICC Masterkey Authentication always.
    The usage of this command can be irreversibly disabled by the SetConfiguration command.