Skip to content

Commit

Permalink
Correct list of flash pages to be erased after extenging Mifare flash…
Browse files Browse the repository at this point in the history
… dictionary area
  • Loading branch information
piotrva committed Dec 7, 2024
1 parent b1b10c2 commit 88d9345
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions armsrc/appmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -2753,6 +2753,15 @@ static void PacketReceived(PacketCommandNG *packet) {
Flash_WriteEnable();
Flash_Erase4k(3, 0xC);
} else if (payload->startidx == DEFAULT_MF_KEYS_OFFSET_P(spi_flash_pages64k)) {
Flash_CheckBusy(BUSY_TIMEOUT);
Flash_WriteEnable();
Flash_Erase4k(3, 0x5);
Flash_CheckBusy(BUSY_TIMEOUT);
Flash_WriteEnable();
Flash_Erase4k(3, 0x6);
Flash_CheckBusy(BUSY_TIMEOUT);
Flash_WriteEnable();
Flash_Erase4k(3, 0x7);
Flash_CheckBusy(BUSY_TIMEOUT);
Flash_WriteEnable();
Flash_Erase4k(3, 0x8);
Expand Down

0 comments on commit 88d9345

Please sign in to comment.