on 2020-11-09 12:23 AM
Thanks for this explanation, I will investigate the datasheet to see of these debug registers are indeed not being reset by pulling RESET low and so need a power-on reset.
I was clearly observing this with 1mA extra consumption on an STM32WLE5 and have made a screenshot of the PowerProfilerKit2 output :
The application wakes up from RTC tick every 5 seconds, and you can see the 10ms activity spikes on top of a 1.4 mA consumption.
Then when I remove the debug-probe, consumption drops to 1 mA,
When I reset the MCU, (after the 5s initialization), the MCU returns again to 1mA, even if SWO debug is not being initialized because the application does not detect the debug probe anymore.
Then when powercycling the MCU, it finally goes down to ~5uA (typical consumption of my board).
Then when
Yes, the datasheet mentions it. It's easy to miss it, as I assumed that only the RTC stuff was not reset by the reset pin...