Problem with reloading option bytes - STM32L010K4T6
I've implemented Read Out Protection in the firmware running on an STM32L010K4T6 MCU, but I'm experiencing unexpected behavior.
- I change the option byte for read out protection level 1 and then read it back, and after resetting via the NRST pin, it still has the same value (No read out protection applied).
2. When I power cycle the device the option byte has a new modified value (Read out protection applied).
3. I have also tried with a system reset but the result is same.
4. I also try out with putting MCU in standby mode and waking up through RTC interrupt but it unable to load option bytes and hang the MCU
We cannot power cycle this device as it is situated in the field. How can we reload option bytes after writing to flash and reset the system without disconnecting power ?
Could you please provide the solutions ?
How to reload option bytes using NRST pin by applying reset through it? Or any work around for the same.
