PWR_EnterSTOPMode(PWR_Regulator_ON, wfi or wfe
回复后都是 接着debug 下去,因为 jtage 能用
PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFE);WFI
回复后 jlink jtag 就不能 跟踪 下去了 因为 没电了,,jlink 就断了。
如果是 stm32 低功耗,jlink 就无法擦除 flash。可按如下步骤:
To reload the Flash memory after launching the low-power example, the boot pin
configuration must be changed from BOOT FLASH to BOOT RAM, and the reset button
must be pressed. This is because the debugger cannot take the hand when the
STM32F10xxx is in low-power mode.
Once this has been done, the boot pin must be configured back to BOOT FLASH.
Measurement is then started by disconnecting and reconnecting the power supply.
The power off/ power on reset sequence is necessary to avoid internal debug module
overconsumption.
1)加电
2)跳线 ram 启动
3)reset
4)跳线 flash
5)connect jlink
6)擦除。
以上 过程是不能断电的