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

Parents
  • FormerMember
    0 FormerMember

    Using an external reset will most likely "mess it up" for the debuggger..

    If you want to test resetting when in debug mode, you can use nrfjprog to reset the chip. The code should then be able to hit a breakpoint in main.

    Update 14.10.2016: If using nrjprog, you can choose between a soft reset and a pin reset. image description

Reply
  • FormerMember
    0 FormerMember

    Using an external reset will most likely "mess it up" for the debuggger..

    If you want to test resetting when in debug mode, you can use nrfjprog to reset the chip. The code should then be able to hit a breakpoint in main.

    Update 14.10.2016: If using nrjprog, you can choose between a soft reset and a pin reset. image description

Children
Related