AnsweredAssumed Answered

STM32l1 and current consumption after STLink connected

Question asked by pribyl.adam on Aug 25, 2014
Latest reply on Aug 29, 2014 by pribyl.adam
I am using STM32L100 MCU with STLink v2 for debug and flash/eeprom programming thru SWD. This is a device with soldered battery - i.e. it is permanently supplied. If I want to reprogram e.g. EEPROM I connect STLink and with STLink utility reprogram the Eeprom with "connect under reset" setting. However from that time on, the device is consuming ~240uA even thou the STLink is disconnected. The only way to avoid it is to disconnect and reconnect the battery.

It looks like some programming/debug logic is activated by STLink, but is not shut down when external nRST is pulled. How should one avoid this? Is there any code to execute at devices restart to disable this logic consumption. I do only "disable" the SWD pins byt switching them to GPIO atm.

Outcomes