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

Error programming external nRF52 with Dev Kit: Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: Unknown value (ffffff24)

I'm trying to program an nRF52 on a custom PCB using the nRF52-DK and am getting an error when connecting with nRF Connect v3.6.1.

I made the following connections from the P0.19 "Debug Out" header of my nRF52-DK to my PCB according to the guidelines.

DK Debug Out Custom PCB
VTG 3.3V

GND_DETECT

GND

GND
SWDIO SWDIO
SWDCLK SWDCLK
SWO P0.18/TRACEDATA[0]/SWO
RESET RESET

The device appears in the list of available connections in nRF Connect as PCA10040 through a serial port, but gives the following error when selected:

Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: Unknown value (ffffff24)

I've confirmed power on the PCB is 3.3V and checked the programming header connections, so I'm not sure what could be the issue. Thanks in advance for any help.

Parents
  • Hi,

     

    I've confirmed power on the PCB is 3.3V and checked the programming header connections, so I'm not sure what could be the issue. Thanks in advance for any help.

    Try powering your external board from the nRF52-DK. This will ensure that the voltage is equal on both your custom board and the DK, as the DK does not have level shifters for debug out.

     

    What I usually do is that I program blinky on my DK, and then connect my external board and do a "nrfjprog -e".

    If the operation succeeds and DK stops blinking, I'm targeting the wrong device.

     

    Kind regards,

    Håkon 

  • I am using a 6-pin header connected as described above (same as 10-pin header but with GND/GNDDetect combined, and no NC/TDI pin). I have double-checked the layout. There is one pin improperly connected on the nRF52 - reset - but I read in the product specification that pin reset is disabled by default, so I assume this is not an issue.

    Can J-Link Commander be used with the DK debugger? 

    Thanks,

    Noelle

Reply
  • I am using a 6-pin header connected as described above (same as 10-pin header but with GND/GNDDetect combined, and no NC/TDI pin). I have double-checked the layout. There is one pin improperly connected on the nRF52 - reset - but I read in the product specification that pin reset is disabled by default, so I assume this is not an issue.

    Can J-Link Commander be used with the DK debugger? 

    Thanks,

    Noelle

Children
Related