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

Using SWD with nRF52832 via custom software

Hello all,

I need to program nRF52 via the SWD pins. I cannot use the nrfjprog or J-link or Segger etc. I have connected 3 wires to the nRF52 - SWCLK, SWDIO and GND.

These wires are now driven by a host and I am using the ARM reference manual for SWD at: hackipedia.org/.../IHI0031A_ARM_debug_interface_v5.pdf

or other places as well. I send the initial packet header (START, APnDP, Read, Addr, Stop, Parity etc.). However, after that, the SWDIO never turns around. The nRF52 never starts driving the SWDIO line with the ACK.

Has anyone experienced this or have any clue why this might be happening? The SWDCLK transitions happen at 100 kHZ. (clock period of 10 us). The host makes the SWDIO as input but the nRF52 doesn't drive it low.

Parents Reply Children
Related