Skip to main content
mahmoud_dhaiwi
Associate II
July 3, 2015
Question

Debug in Standby low power mode

  • July 3, 2015
  • 2 replies
  • 2427 views
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
This topic has been closed for replies.

2 replies

nesrine
Visitor II
July 3, 2015
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

Tesla DeLorean
Guru
July 3, 2015
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 (See Profile) Up vote any posts that you find helpful, it shows what's working..