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

Programming external board using SES and nrfjprog

Hi,

I am able to program a SparkFun nRF52 breakout board via nrf52 Dev Kit using Segger Embedded Studio. However, I am not able to achieve the same results using nrfjprog. All the dev tools are OSX.

A simple erase all using nrfjprog returns the below errors in log file

FUNCTION: open_dll. FUNCTION: open_dll. . . . Device "NRF52832_XXAA" selected. FUNCTION: read_device_version. FUNCTION: read_device_version. JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1. JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102. FUNCTION: close_dll. FUNCTION: close_dll.

What I am missing here? Anything different to do when using command line tools?

Parents
  • It’s hard to say what exactly the issue is since the -1 and -102 are generic error codes returned by the JLinkARM dll for which Segger's documentation offers no specific explanation other than that an error has occurred.

    Somethings you can try:

    • Try this command before you flash your firmware: nrfjprog.exe -f nrf52 --recover --log
    • Can you measure the supply voltage on the nRF Device? The error could indicate that the debugger is not able to detect the device, and that there is some mechanical issue with the wiring or connectors (a contact issue).
    • Can you try this guide? devzone.nordicsemi.com/.../
Reply
  • It’s hard to say what exactly the issue is since the -1 and -102 are generic error codes returned by the JLinkARM dll for which Segger's documentation offers no specific explanation other than that an error has occurred.

    Somethings you can try:

    • Try this command before you flash your firmware: nrfjprog.exe -f nrf52 --recover --log
    • Can you measure the supply voltage on the nRF Device? The error could indicate that the debugger is not able to detect the device, and that there is some mechanical issue with the wiring or connectors (a contact issue).
    • Can you try this guide? devzone.nordicsemi.com/.../
Children
No Data
Related