How do I reset nRF51822 to shut down the debug port? I have a custom board with a built-in battery and strong power management. If I power up the board without the debugger, it consumes under 10uA idle, but whenever I reprogram the chip using SWD/JLink, it stays consuming about 1mA and I found no way of resetting the chip/debug interface after disconnecting the JLink.
The only way I found is cycling the power, which is pretty inconvenient, given that the battery is supposed to be soldered in. Do I really need to add that powerdown circuitry, or is there a way to reset the debug interface without cutting the power?