This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using nRF5340DK to program an nRF9160 - "Error when running nrfdl_enumerate"

I am using the programmer on the development kit to program my nRF9160 device.  

I am using a Mac running Mac Big Sur 11.6.1

nRF Connect for Desktop v3.9.1

Programmer v2.0.1

My debug log is:

```

2021-12-22T22:52:58.051Z INFO Application data folder: /Users/chipmc/Library/Application Support/nrfconnect/pc-nrfconnect-programmer
2021-12-22T22:52:58.593Z DEBUG iface: undefined
2021-12-22T22:52:58.594Z DEBUG IP4: undefined
2021-12-22T22:52:58.594Z DEBUG IP6: undefined
2021-12-22T22:52:58.594Z DEBUG MAC: undefined
2021-12-22T22:52:58.594Z DEBUG Client Id: unknown
2021-12-22T22:52:58.596Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
2021-12-22T22:52:58.740Z DEBUG App pc-nrfconnect-programmer v2.0.1 official
2021-12-22T22:52:58.741Z DEBUG App path: /Users/chipmc/.nrfconnect-apps/node_modules/pc-nrfconnect-programmer
2021-12-22T22:52:58.741Z DEBUG nRFConnect 3.9.1, required by the app is (^3.8.0)
2021-12-22T22:52:58.741Z DEBUG nRFConnect path: /Applications/nRF Connect for Desktop.app/Contents/Resources/app.asar
2021-12-22T22:52:58.741Z DEBUG HomeDir: /Users/chipmc
2021-12-22T22:52:58.741Z DEBUG TmpDir: /var/folders/22/2lzmn8d97yq40jvxfd13hypm0000gn/T/
2021-12-22T22:53:00.528Z ERROR Error while probing devices, more details in the debug log: JLINKARM_DLL_COULD_NOT_BE_OPENED (Origin: "Error when running nrfdl_enumerate")

```

Any advice on how to resolve this issue?

  • Hello, 

    Please note that due to Christmas holidays our R&D team are lower staffed than normal and that response time is increased.


    What version of nrfjprog and Jlink drivers are you running? Can you please issue the following command in the terminal.

    nrfjprog --version
    

    There have been issues with the latest version of the JLink drivers. Version 7.20 was latest verified version to work. 

    Kind regards,
    Øyvind

  • Well, you may be on to something. I installed the programmer using the nRF connect for desktop application.  

    From my terminal the command "nrfjprog --version" returns "-bash: nrfjprog: command not found"

    Is there another step I need to take?  Install some command line tools?

    Thanks, 

    Chip

  • Hi,

     

    Could you try installing the nrf command line tools? this should include segger drivers as well as nrfjprog:

    https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download

     

    Kind regards,

    Håkon

  • Thank you for this suggestion, I thought these tools would have been installed with the programmer in the nRF connect for desktop.  I followed your link and installed the command line tools successfully.  However, when I tried the nrfjprog -- version command I got the following error:

    (base) cmcclell-mac:~ chipmc$ nrfjprog --version
    ERROR: JLinkARM DLL load failed. Try again. If it keeps failing, please
    ERROR: reinstall latest JLinkARM from Segger webpage.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    From there, I went to the Segger site and downloaded the latest JLinkARM.dll.  This seemed to fix the issue (though it feels like this step should not be necessary - perhaps your command lines tools package needs to be updated?).

    I now get the response:

    (base) cmcclell-mac:~ chipmc$ nrfjprog --version
    nrfjprog version: 10.15.1 external
    JLinkARM.dll version: 7.61a

    So, progress indeed. However, when I connect the nRF5340 DK to my computer and the nRF9160 Feather to that device using the programming cable, I still am unable to connect.  It has been suggested that I may need a nRF9160 DK to make this connection and one is on the way - arriving next week.

    So, if there are additional troubleshooting steps, please let me know.  If it is true that I need the nRF9160 DK in order for this connection to work, I will try that step next week. 

    Thanks, Chip

  • Hi,

     

    I now get the response:

    That is good news. The system seems to be installed properly.

     

    So, progress indeed. However, when I connect the nRF5340 DK to my computer and the nRF9160 Feather to that device using the programming cable, I still am unable to connect.  It has been suggested that I may need a nRF9160 DK to make this connection and one is on the way - arriving next week.

    So, if there are additional troubleshooting steps, please let me know.  If it is true that I need the nRF9160 DK in order for this connection to work, I will try that step next week. 

    According to the feather documentation, you should be able to program the device using a nRF5340-DK:

    https://docs.jaredwolff.com/nrf9160-programming-and-debugging.html

     

    It is the same debugger capabilities on the nRF5340-DK as the nRF9160-DK, with the exception that the nRF9160-DK can be switched into 1.8V programming mode.

     

    Please note that the debugger connection does not provide power to the external device, so the feather must be self-powered.

     

    Kind regards,

    Håkon

Related