AnsweredAssumed Answered

STM32 Flash being wiped?

Question asked by sung.chen_chung on Dec 12, 2013
Latest reply on Dec 13, 2013 by opijozko

This is Not a software problem. This is an electrical problem!

We are seeing a number of unexpected Flash sector erasures/wipes.
Typically, we are
powering up/down the system
connecting/disconnecting USB or RS232

The next time we power up - nothing is working. When we check (with the STLink V2) the entire internal Flash has been wiped.

Does anyone have any idea why this is happening?

We are using a STM32F405R6.
We have USB on portA pins 11 & 12
We have RS232 on portB pins 10 & 11
We also have I2C on portB pins 6 & 7 to a TI DSP and STM8 (just extra info for you)
We are not using Flash lock on any of the sectors (do we need to? - I have never needed to before in the past on other devices/processors)

As far as I know, there is no Flash writing going on at the time of power down or connecting/disconnecting USB/RS232