Why DESFire applications run out of memory faster than raw payload sums
When sizing between DESFire Light (640 B), 2K (2,048 B), 4K (4,096 B) and 8K (8,192 B) (NXP MIFARE DESFire EV3 Short Data Sheet Rev. 3.1 (MF3D(H)x3); NXP MIFARE DESFire EV2 Short Data Sheet Rev. 3.2 (MF3D(H)x2)), three on-card transaction mechanisms consume extra EEPROM beyond your logical byte count:
- Backup Data files (
CBh) allocate a2×shadow buffer: Writes stay invisible to readers untilCommitTransaction(C7h) executes, protecting credentials if a user pulls the card away mid-tap — at the cost of double non-volatile storage. - Cyclic Record files (
C0h) requireN + 1record slots: One complete record slot is reserved for atomic ring rollover, so storing 10 readable tap logs of 32 bytes requires creating11 × 32 = 352bytes of record slots. - Multiple key sets (
InitializeKeySet/RollKeySet): Provisioning 2 or 3 key sets per application on EV2/EV3 for zero-downtime key rotation multiplies per-application key storage accordingly.
MIFARE DESFire Light, 2K, 4K & 8K quick reference
| Tier | EEPROM | EV3 / Light parts | EV2 parts | Application scope |
|---|---|---|---|---|
| MIFARE DESFire Light (640 B) | 640 B | MF2DL(H)x0 (17 pF / 50 pF) | — (EV2-subset messaging) | 1 predefined application, 5 fixed files (+ optional TMAC) |
| MIFARE DESFire 2K (2,048 B) | 2048 B | MF3D23 / MF3DH23 | MF3D22 / MF3DH22 | Memory-bounded AIDs, up to 32 files/app |
| MIFARE DESFire 4K (4,096 B) | 4096 B | MF3D43 / MF3DH43 | MF3D42 / MF3DH42 | Memory-bounded AIDs, up to 32 files/app |
| MIFARE DESFire 8K (8,192 B) | 8192 B | MF3D83 / MF3DH83 | MF3D82 / MF3DH82 | Memory-bounded AIDs, up to 32 files/app |