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

nRF52840 PDK to external board programming

I'm using the P20 connectors in nRF52 PDK to flash my custom nRF52832 board.

The connections are like this:

SWDIO ----> SWDIO

SWDCLK ---->SWDCLK

VTG ------> VDD

GND DETECT, GND ----> GND

I've powered up the custom board externally. I'll attach a screenshot of the error I'm receiving. Is the connections I've given correct? or Is there any workarounds for solving this problem. nrfjprog is also throwing an error as JLINKARM_DLL_ERROR. 

Parents
  • Hi,

     

    It is recommended that you short "VDD_NRF" to "VTG" on P20, to force the segger to  use this port for programming, and power your external board from the nRF5x-DK.

    Once this is done, you can connect SWDIO+SWDCLK to your target, in addition to the VDD_NRF and GND.

     

    What does the output of Jlink Commander show if you try to connect using this tool?

    Do you have other custom boards that behave similar?

     

    Best regards,

    Håkon

     

  • If we short the VDD_nRF and VTG pins, where should the custom boards' VDD be connected? Should the board be powered separately?

    Thanks

    -vivenkat

    Edit 1: My connections are as follows:

    On P20,
    VDD_nRF and VTG are shorted
    VDD is used to power the custom Nordic board

    SWDIO and SWDCLK in nRF52 DK to SWDIO and SWDCLK on the custom Nordic board

    One of the GND pins from the DK to the custom board.

    I have the same error as Labuka. Any help would be gladly appreciated!

    -vivenkat

  • Hi,

     

    If we short the VDD_nRF and VTG pins, where should the custom boards' VDD be connected? Should the board be powered separately?

    When shorting VTG->VDD_NRF (or pin VDD), you tell the board to use P20 as the target debug. Your external board, connected to P20 (1x8 header), should still be powered. I recommend powering your external board with either "VDD" or "VDD_NRF" from the nRF5x-DK. This is to ensure that the voltage is equal on both the debugger and your custom board.

     

    If you still have issues connecting to your board, please check with both nrfjprog and JLink Commander and post logs from both programs.

     

    Best regards,

    Håkon

     

  • Hi,

    I gave the connections exactly as you described but still I'm facing the same issues. I'll post the logs for reference.

Reply Children
Related