I've noticed that after flashing an MCU, when the MCU enters stop mode (deep sleep), the current usage is like 160 µA, where I would expect only a few micro amps. Toggling the MCU reset line has no impact. Only when I remove and restore power, the MCU when in stop mode only draws like 4 µA.
Some details:
I flash command line using
JLinkExe -If SWD -Device "STM32L151CC" -Speed 8000 -AutoConnect 1 -ExitOnError 1 -CommandFile command.jlink
with as command file:
r
loadbin BUILD/XDOT_L151CC/GCC_ARM/lmp.bin, 0x08000000
r
q
A ST-Link flasher I've tried does not show this behavior.
Apparently some SWD related stuff gets activated on the MCU. How do I reset this without power cycle? This is important for our project as it is a battery powered device.
Thanks,
Mark
Some details:
- MCU STM32L151CC (Multitech xDot)
- SEGGER J-Link Commander V6.34c (Compiled Aug 23 2018 10:59:18), on a Mac
I flash command line using
JLinkExe -If SWD -Device "STM32L151CC" -Speed 8000 -AutoConnect 1 -ExitOnError 1 -CommandFile command.jlink
with as command file:
r
loadbin BUILD/XDOT_L151CC/GCC_ARM/lmp.bin, 0x08000000
r
q
A ST-Link flasher I've tried does not show this behavior.
Apparently some SWD related stuff gets activated on the MCU. How do I reset this without power cycle? This is important for our project as it is a battery powered device.
Thanks,
Mark