mem info - now accepts input id to facility easy testing. Signature offset also triggers erase before to enable easy updates

This commit is contained in:
iceman1001 2021-03-07 08:56:36 +01:00
commit dff732840f
3 changed files with 59 additions and 18 deletions

View file

@ -2202,6 +2202,10 @@ static void PacketReceived(PacketCommandNG *packet) {
Flash_CheckBusy(BUSY_TIMEOUT);
Flash_WriteEnable();
Flash_Erase4k(3, 0xB);
} else if (startidx == FLASH_MEM_SIGNATURE_OFFSET) {
Flash_CheckBusy(BUSY_TIMEOUT);
Flash_WriteEnable();
Flash_Erase4k(3, 0xF);
}
res = Flash_Write(startidx, data, len);