2020-06-22 11:05 PM
Dear ST community,
I was wondering if you could help me with a problem I'm having with an STM32.
I have a system containing an STM32F103VET6. The last flash pages are used to store settings/parameters. 2 redundant flash pages are used.
This system is power-cycled about daily. Randomly about once per month these flash pages appear to either be getting corrupted or erased for no apparent reason, so the system loses its settings. This is during normal operation in which these flash pages aren't erased or written by the software (or at least aren't supposed to be).
Any thoughts/ideas would be greatly appreciated.
Thank you
2020-06-23 05:21 AM
Does you code have the ability to erase/modify those flash pages? If so, that's probably what's happening. Unlikely that the flash is just erasing itself spontaneously.
2020-06-23 07:27 AM
Do something conspicuous in code which erases/programs the FLASH, e.g. light up an otherwise unused LED. Then try to increase periodicity of problem occurrence eg. by automatic on/of switching, throwing extreme (also possibly automatic) stimuli at it.
And/or do staring at the code, trying to develop hypotheses how could the code in question be executed unintentionally.
JW
2021-08-27 02:21 AM
Hi @Steven Higginbotham ,
have you found a rootcause and / or solution for the issue?
If so are you willing to share with us?
Thanks,
Marcel