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!

Parents
  • Hi.

    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?

    That looks correct, Are you observing any issues with it?

    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)

    Yes,

    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)

    By default the examples will use P0.06 and P0.08 for RX and TX. 

    regards

    Jared

Reply
  • Hi.

    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?

    That looks correct, Are you observing any issues with it?

    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)

    Yes,

    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)

    By default the examples will use P0.06 and P0.08 for RX and TX. 

    regards

    Jared

Children
  • Thank you very much for confirming that! 

    Another related question:

    I want to put the 10 SWD pins on my custom board. However, I cannot find the bill of materials of nRF52-DK. Specifically, I am looking for the part number of the 10 pins used for P19. So far, this item is the closest that I can find, but I am wondering if there is any specific manufacturer and part number. (I assume Nordic didn't get those pins from Adafruits)

    Alternatively, could you suggest any keywords I should use to find parts like this?

    Thank you!

Related