2020-06-30 11:40 PM
Hello,
I am using STM32G030K8 for my application. So, due to bug in my code, out of bound flash memory address was tried for write and hardfault occured. But after resolving bug and resetting MCU, I observed that flash erase and write is not consistent. I tried mass erase of flash using cubeMX programmer and reflash the program, but to no avail. How to resolve this issue?
Thanks & Regards,
Omkar
2020-07-01 12:33 AM
What does "flash erase and write is not consistent." actually mean? And what was your out of bound address? You should check *ALL* option bytes, WRP, PCROP, SECR. In particular OPTR has some undocumented (this does not necessarily mean non-functional!) bits.
2020-07-01 01:04 AM
Hello Andreas,
What does "flash erase and write is not consistent." actually mean?
-- As in flash erase sometimes works successfully and sometimes gives error and same result with flash write.
And what was your out of bound address?
-- My out of bound address was 0x2800A280. So, I was trying to store new OTA flash image at address 0x08008800 and because of bug in the code, address leaped to 0x2800A280.
You should check *ALL* option bytes
-- How to check all option bytes ?
Thanks & Regards,
Omkar
2020-07-01 01:32 AM