Hello! I am using a custom board that contains a nRF52832 device. The board has the SWDIO
and SWDCK
lines connected, which I have successfully been using to flash and debug the firmware.
However, I cannot seem to make the device leave debug mode. I have tried to use the --pinresetenable
and --pinreset
command with nrfjprog, but with no success.
The procedure I followed was:
-
- Disconnect and reconnect device battery. Current consumption is bellow 0.1mA, as expected.
-
- Connect Segger debugger, start JLinkExe and run
power on
andconnect
. Current consumption becomes around 2mA. An increase was expected.
- Connect Segger debugger, start JLinkExe and run
-
- Close JLinkExe.
-
- Run
nrfjprog --pinresetenable -f nrf52
.echo $?
returns 0.
- Run
-
- Run
nrfjprog --pinreset -f nrf52
.echo $?
returns 0.
- Run
-
- Disconnect debugger from board. Current consumption remains ~2mA
Do any other steps have to be taken to switch back to normal mode? Does the board have to implement anything else other than the SWD lines for these commands to work?