Programming nRF52832 custom board using nRF52840DK via SWD

Hi,

I had a problem while programming my custom nRF52832 board using nRF52840DK. I am using this connection that I found in the Nordic Devzone forum. I am trying to program my custom board using nrfjprog. I can see my board when I print the nrfjprog --ids and --deviceversion but I cannot see my custom board. I try different connections that I found in the forums but this is the most reliable one for my project. 

This the connections that I applied:

Custom nRF52832 board     |    nRF52840DK

VDD                                      |    VDD_nRF

                                             |    VDD_nRF' shorted with SWDSEL (as far as I understand from the forums it is shorted because to program an external device connecting to the DK)

SWDIO                                 |    SWDIO

SWDCLK                              |    SWDCLK

GND                                     |     GND

  • Are there any suggestions for that?
  • Even if the connections are true, how can I understand my custom board recognised by nRF52840DK?
  • How can I program my custom board using nrfjprog if the connections are provided correctly?

Thanks for your answers. Have a great day to you all.

  • Sorry for asking questions again and again. 

    • Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1)
    • Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1)

    I do the connections and try to read from the nRF connect for the desktop. I got this error. What might be causing the problem? Could it be that the debugger on the nRF52840DK does not recognize the nRF52832 chip?

Related