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

External reset when debugging nRF52

Hi all

I'm using the nRF52832 and I've configured P0.21 as RESET pin.

When I reset the nRF52 via P0.21 while the debugger is running, the nRF52 actually resets but it seems that the debugger didn't recognize the reset (a breakpoint at the beginning of the main function didn't trigger).

How can I achieve that the debugger remains synchronous to the actual code execution when applying an external reset? Is that even possible?

Kind regards

  • I've tried the nrfjprog with the IAR. When performing the soft reset, the IAR is able to follow it and hits the breakpoint, but when performing the pin reset (which was the one I wanted to test) the IAR can't follow it. So, unfortunately, it seems that there is no solution for this...

  • Hi,

    I am getting a similar error. I have nRF52832 board connected to raspberry pi for flashing and debugging using openocd. As soon as openocd command is executed I start getting this error:

    Info : [nrf52.cpu] external reset detected

    Following is the snippet of the output of the openocd command:

    pi@vsense:~ $ openocd -c 'bindto 0.0.0.0' -f rpi_as_debugger.cfg -c 'transport s elect swd' -c 'adapter speed 250' -f target/nrf52.cfg
    Open On-Chip Debugger 0.11.0+dev-00815-gf77c919cf (2022-08-23-18:35)
    Licensed under GNU GPL v2
    For bug reports, read
    openocd.org/.../bugs.html
    srst_only separate srst_gates_jtag srst_push_pull connect_deassert_srst

    swd
    adapter speed: 250 kHz

    Info : Listening on port 6666 for tcl connections
    Info : Listening on port 4444 for telnet connections
    Info : BCM2835 GPIO JTAG/SWD bitbang driver
    Info : clock speed 1001 kHz
    Info : SWD DPIDR 0x2ba01477
    Info : [nrf52.cpu] Cortex-M4 r0p1 processor detected
    Info : [nrf52.cpu] target has 6 breakpoints, 4 watchpoints
    Info : starting gdb server for nrf52.cpu on 3333
    Info : Listening on port 3333 for gdb connections
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected
    Info : [nrf52.cpu] external reset detected

    .....

    .....

    Does anyone have any idea what could be the root cause of this error propping up even when there is no IDE running, no flashing of program is done, no debugging through IDE is started/ going on.

    Thanks in advance...

    Regards,

    Vicky

Related