cancel
Showing results for 
Search instead for 
Did you mean: 

Debug in Standby low power mode

mahmoud_dhaiwi
Associate II
Posted on July 03, 2015 at 10:59

Hello,

Can we Debug in Standby low power mode ?

and how ?

I use STM32F103, STLink V2, GCC ARM.

Thanks 🙂

#debug-mode #standby
2 REPLIES 2
nesrine
Senior
Posted on July 03, 2015 at 13:39

Hello,

In the RM0008 reference manual for STM32F1 product it said:

“By default, the debug connection is lost if the application puts the MCU in Stop or Standby mode while the debug features are used. This is due to the fact that the Cortex®-M3 core is no longer clocked. However, by setting some configuration bits in the DBGMCU_CR register, the software can be debugged even when using the low-power modes extensively�?

So check the DBG_STANDBY bit in the DBGMCU_CR register

I hope this answered your questions.

Syrine

Posted on July 03, 2015 at 16:12

The other problem is that it removes the power, and exits out via a reset.

Perhaps you also need to rethink your ''debugging'' strategy so you can understand what's going on in your system without having to have a JTAG/SWD pod attached and single step everything?

Test as much as you can without actually going into STANDBY, and evaluate STANDBY in simple test applications before applying it to complicated ones.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..