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

RST Pin for SWD interface is necessary?

image description

I am using the Segger interface for designing an nRF52 based device. I am planning to use SWDIO SWCLK VTref and GND pins on my device. Is it necessary to connect the nRESET pin to the Reset pin of the NRF52 chip? If I dont connect this, will there be any issue with programming/flashing the device? what are the advantages/disadvantages? Can anyone kindly elaborate on this?

thank you!

Parents
  • No - it is not necessary to connect the nRESET pin to the RESET pin on the nRF52 chip.

    The nRF51 had a SWD protocol that was not standard - the reset was multiplexed on the SWDIO lines.

    This is not the case with the nRF52, the SWD interface is standard. Now you have the option to configure a GPIO pin (pin 21 by default) as a reset pin. This is not required though. SEGGER or any other programming tools don't need a reset pin. They reset the device by writing CPU registers and through SWD commands (sysResetReq).

    -Mike

  • Actually, you may have to resort to "hardware" (though software configured) reset if you're using the watchdog, as it isn't stopped by a software reset. The watchdog can be inhibited when the core is halted, but that won't do you any good if your probe (and backing software) loads firmware in RAM along with a microcode tasked with writing it down to flash, or some variant of that. Except if said microcode is smart enough to refresh the watchdog, that is.

Reply
  • Actually, you may have to resort to "hardware" (though software configured) reset if you're using the watchdog, as it isn't stopped by a software reset. The watchdog can be inhibited when the core is halted, but that won't do you any good if your probe (and backing software) loads firmware in RAM along with a microcode tasked with writing it down to flash, or some variant of that. Except if said microcode is smart enough to refresh the watchdog, that is.

Children
No Data
Related