This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Disable debug unit with JLink still connected?

I'm measuring current consumption on nRF51822, making code changes and then flashing/debugging via JLink GDBServer and gdb.

Right now it seems like I either have to physically disconnect my board from the JLink Lite or disconnect the JLink from USB after uploading the program. If I simply reset the chip, the debug unit stays enabled and I see ~1.5 mA current draw. Having to physically plug and unplug is a bit tedious.

Is there a way for me to disable the Segger and reset the chip such that when it resets, DEBUG is off and it does not draw the associated current? Preferably some way I can automate via a Makefile? I've tried switching to the JTAG interface via JLinkExe but that doesn't help.

Thanks!

-c

Parents Reply Children
No Data
Related