AnsweredAssumed Answered

STM32L0 problem with retaining vector table

Question asked by Ancaritha on Sep 7, 2016
Latest reply on Sep 7, 2016 by Ancaritha
Hi there!  I'm using the STM32L053 Discovery board, and I'm having a very weird problem.  Whenever I remove power from the board, whatever is in the first page of flash disappears.  The first 3 words become random (changes every power cycle) and everything else is erased to 0.  Since this is the vector table spot, my image doesn't run after I remove power and I have to reprogram it.

I was originally using Visual Studios with VisualGDB, but I just got the OpenSTM32 workbench thingie running and did two of the examples from the L0 framework and programmed the resulting images using the ST-LINK Utility.  Exact same result.

What am I missing?  Why does the first page of flash keep getting reset?  Any help would be greatly appreciated.


Edit:  Forgot to mention, this occurs on two separate Discovery boards and I believe it happened out of the box.  I haven't changed any protection levels or anything like that but I did confirm that they are all off.