cancel
Showing results for 
Search instead for 
Did you mean: 

OPTVERR bit seems to be erroneously set, why?

AVoel.1
Associate III

We are seeing a situation where the OPTVERR bit is unexpectedly set after power reset. We've checked and all the complement words in the Flash area for the option bytes are set correctly, so no corruption there. The description in the reference manual for why this bit gets set is confusing:

"Set by hardware when the options read may not be the one configured by the user. If option haven’t been properly loaded, OPTVERR is set again after each system reset."

To make the mystery even more intriguing, we are only seeing this on one of our two PCB board designs, even though both use identical STM32L452REY6 MCUs. The higher density board is exhibiting this problem, the lower density board is not. So it seems related to the HW environment, which on the surface makes very little sense. So two questions:

  1. Is there anything that should trigger the OPTVERR bit to be set other than the complement words not being set correctly in Flash?
  2. Could any HW environment cause this issue, maybe related to an Errata or brown out condition or ...?

2 REPLIES 2

> Could any HW environment cause this issue, maybe related to an Errata or brown out condition or ...?

I don't know, but let me reverse the question: are there differences in the HW environment between the boards? Perhaps a problematic/oscillating supply voltage rise? Ground pin voltage differences during powerup, problematic VDDA rise? Do you have BOR option bits set/setting them to a different value makes any difference?

JW

Lucky Dog
Associate III

 Hello, I also encountered the same problem. The chip I used was stm32l451REYx, and the OPTVERR bit would be set to 1 after each power-on. How did you solve the problem and what is the root cause of the problem?