2015-07-03 01:59 AM
2015-07-03 04:39 AM
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 registerI hope this answered your questions.Syrine2015-07-03 07:12 AM
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.