Increased consumption in low power modes
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
on 2020-11-09 12:23 AM
Debug MCU configuration register (DBG_CR):
Register contains 3 bits
- DBG_STANDBY: Debug Standby mode
- DBG_STOP: Debug Stop mode
- DBG_SLEEP: Debug Sleep mode
When some of these bits are active, the debug module and some of the internal clocks are active during low-power mode and this causes increased power consumption.
When developers reset or reprogram MCU with release version of firmware they still remain active if the MCU didn’t go through power reset.
Register is reset only during power-on reset (POR). Thus, issue can be solved by manually clearing debug bits in DBG_CR or reset using power cycling of MCU.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Email to a Friend
- Report Inappropriate Content
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...