Skip to main content
Steven Higginbotham
Visitor II
June 23, 2020
Question

STM32F103 upper flash pages corrupted/erased.

  • June 23, 2020
  • 3 replies
  • 879 views

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

This topic has been closed for replies.

3 replies

TDK
June 23, 2020

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
waclawek.jan
Super User
June 23, 2020

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

MKali
Visitor II
August 27, 2021

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