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

HW -reset/swdio pin nrf51422 challenges

Hi,

We have an application where we have very very slow vcc risetime and therefore we have an external watchdog reset circuit connected to the -reset/swdio pin in order to successfully reset the cpu.

We see that if we program the device using fx nrfjprog.exe and finish up with a nrfjprog.exe -r command - we are not able to reset the cpu externally anymore...

If we reset using -p (pinreset) we can often reset external.

Sometimes we are locked out from resetting. In this case we need to completely discharge the VCC caps and start again.

What is going on with the reset pin??

BR Flemming

Parents
  • Hi, calling nrfjprog with '-r' means a system reset, where the device is still in debug mode. Calling with '-p' means a pin reset, where the device will exit debug mode. Typically while in debug mode the pin reset is disabled, to handle this the application can write to the RESET register in the POWER peripheral to enable pin reset in debug mode.

Reply
  • Hi, calling nrfjprog with '-r' means a system reset, where the device is still in debug mode. Calling with '-p' means a pin reset, where the device will exit debug mode. Typically while in debug mode the pin reset is disabled, to handle this the application can write to the RESET register in the POWER peripheral to enable pin reset in debug mode.

Children
Related