I am creating a bootloader SWE that erases an app from block 16 and flashes an app there while flashing suddenly the memory becomes zeros and we cant do any operations on memory and even flashing the app itself through the debugger doesn't work until erasing it through the flash driver. What could be the cause of it?
Hello,
flashes an app there while flashing suddenly the memory becomes zeros and we cant do any operations on memory and even flashing the app itself through the debugger doesn't work until erasing it through the flash driver. What could be the cause of it?
Becoming all zeroes, does that mean you read zeroes or you debugger interprets ECC fault as 0x0000 ?
Because for memory to become all zeroes it require to be programmed. Erased state = all 0xFFFF
I expect you have some simple error during programming. Like enabled interrupts, or power drop which will cause your memory to be filled with ECC faults and you read them as 0 in some debugger interface.
Since the erase then remove the issue. Erase will clear all ECC errors.
So simplified you have something which is interrupting your programming and crating the ECC faults.
Best regards,
Peter