PN532 write data to Mifare card

2.4k views Asked by At

I want to write data to a MIFARE Classic card. But I don't know which address can be written. I just know that sector 0 can not be written. Could anyone show me the complete address map that can be written?

1

There are 1 answers

1
Michael Roland On BEST ANSWER

Except for the manufacturer block (block 0), all other blocks on MIFARE Classic cards can be written (after proper authentication and unless they have been permanently write-protected by setting the sector's access bits).

So for a MIFARE Classic 1k card, blocks 1 to 63 can typically be written (with the above mentioned exceptions). You can find the datasheet with the complete memory layout and explanation of access bits here.

Similarly for a MIFARE Classic 4k card, blocks 1 to 255 can typically be written (with the above mentioned exceptions). You can find the datasheet with the complete memory layout and explanation of access bits here.