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