This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WRPERR when set breakpoints

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


0