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

nrfjprog fails to load JLinkARM on Linux

I didn't manage to find a solution to my problem here but I fixed it myself so I'm posting it just in case it helps someone else.

I installed JLink 5.12.6 and nRF5x Command Line Tools 8.4.0 on 64 bit Ubuntu.

When trying to execute "./nrfjprog -v" the following error comes out:

ERROR: JLinkARM DLL load failed. Try again. If it keeps failing, please

ERROR: reinstall latest JLinkARM from Segger webpage.

In /opt/SEGGER/JLink/ there is shared library libjlinkarm.so.5. Renaming it to libjlinkarm.so fixed the problem for me as it seems that the library name is hardcoded.

Parents
  • Hi,

    I was able to replicate this scenario at my end as well. It seems that the .deb package from segger does not force the symlink to be updated.

    I had the version v5.10.21, and installed v5.12.7. My symlink points to the older version (which is non-existing):

    lrwxrwxrwx 1 root root 40 april 20 13:07 /usr/lib/libjlinkarm.so -> /opt/SEGGER/JLink/libjlinkarm.so.5.10.2
    

    As a temporary workaround, you can force the symlink:

    sudo ln -fs /opt/SEGGER/<rest_of_path>/libjlinkarm.so /usr/lib/libjlinkarm.so
    

    I will report this back to our nrfjprog team, so that they can inform SEGGER directly.

    If you still have issues with nrfjprog throwing an error, please run:

    strace nrfjprog -i
    

    And post the output of this.

    Cheers, Håkon

Reply
  • Hi,

    I was able to replicate this scenario at my end as well. It seems that the .deb package from segger does not force the symlink to be updated.

    I had the version v5.10.21, and installed v5.12.7. My symlink points to the older version (which is non-existing):

    lrwxrwxrwx 1 root root 40 april 20 13:07 /usr/lib/libjlinkarm.so -> /opt/SEGGER/JLink/libjlinkarm.so.5.10.2
    

    As a temporary workaround, you can force the symlink:

    sudo ln -fs /opt/SEGGER/<rest_of_path>/libjlinkarm.so /usr/lib/libjlinkarm.so
    

    I will report this back to our nrfjprog team, so that they can inform SEGGER directly.

    If you still have issues with nrfjprog throwing an error, please run:

    strace nrfjprog -i
    

    And post the output of this.

    Cheers, Håkon

Children
Related