Connecting P19 pins from nRF52-DK to my custom board

Hi,

I am trying to use a 10-pin flat cable to connect my custom board to nRF52-DK to program the nRF52840 on my custom board.

Just wanted to make sure I connected the wired correctly. From the pins specified here, I will connect

SWD0_VTG to VDD of nRF52840 (only effective when I short the SB32 on nRF52840)

SWD0_SWDIO to SWDIO of nRF52840

SWD0_SELECT to GND of nRF52840

SWD0_SWDCLK to SWDCLK of nRF52840

GND to GND of nRF52840

SWD0_SW0 can be left floating?

SWD0_RESET to P0.18/RESET of nRF52840

Could you please confirm if the connection above is correct? Then, if I don't short SB32, all I need to do is to connect the custom board and nRF52-DK with the 10-pin cable and power up the custom board (VDD) with 3V,right? (The nRF52-DK will be powered by USB)

Also, I was able to use UART with printk() using nRF Connect SDK on my nRF52-DK. If I want to do the same with my custom board, which pins on the nRF52840 shall I use as the TX and RX? If they are configurable, which are the default pins? (used by the hello world example in nRF Connect SDK)

Thank you!

Related