STM32L433 Flash ECC recovery and intentional flash corruption
Hello folks!
One of my devices happened to have a some kind of flash corruption, enough that an ECC NMI was triggered.
Removing the "while(1)" from the default handler, to simply return from that handler to my program, did not work.
I was thinking that I could delete the offending sector (it was flash used for logging) and then return/reboot.
Anyway, I didn't have the opportunity to test because we did a mass erase which "solved" the problem. So, i have two questions:
- Given that I can give a warning to the user that logs/parameters are lost, what's the right way to recover from this ECC NMI?
- How can I corrupt intentionally the flash to test the solution found in point 1? (i tried with https://github.com/xarantolus/stm32-flash-corruptor approach to no avail)
Thank you all in advance.
