Skip to main content
Explorer
December 5, 2024
Question

STM32L433 Flash ECC recovery and intentional flash corruption

  • December 5, 2024
  • 0 replies
  • 403 views

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:

  1. 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?
  2. 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.

 

    This topic has been closed for replies.