We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
The scenario is STM32L0 (ST Nucleo evaluation board) and custom firmware.
When I execute the code in debug mode and it stops at main function, the value of FLASH->SR is 0x0000000C, and it looks good for me.Now, without running the code, if I simply set a breakpoint clicking with the mouse on the uVision IDE, the status of the register suddenly changes to 0x0000010C, that means that the WRPERR bit is now set.Why? What happen when a breakpoint is set? And how this can affect the FLASH->SR register?Any idea or suggestion would be really appreciated.Thank you
[UPDATE]to solve this issue disable software breakpoints.
SBC startFlashaddr, endFlashaddr, 0
Yes, you can verify your own post as the answer!