2

nrfjprog always fails to find JLinkARM.dll, even in the same folder [closed]

KTOWN gravatar image

asked 2014-01-09 19:34:13 +0100

updated 2014-01-10 23:47:14 +0100

I was trying to setup a GNU toolchain on Windows and use the nrfjprog utility, but despite having installed the J-Link drivers (4.78), nRFGo Studio as well as the nRF51 SDK (which installs the nrfjprog utility in Program Files), I always get the following error:

C:\Program Files (x86)\Nordic Semiconductor\nrf51\bin>nrfjprog --recover ERROR: JLinkARM.dll could not be located after the installation info in the regi stry or in the current folder.

I've uninstalled every version of the J-Link drivers on the system, uninstalled all Nordic utilities and reinstalled the SDK and nRFGo Studio as well as the J-Link drivers, but it never seems to find the .dll even when I copy it into the same folder as the executable.

I've also search the registry for every reference on JLinkARM.dll but there was nothing suspicious there.

Do you have any idea on how to force this utility to load the JLinkARM.dll file you place in the same folder, for example (what I would have expected to be the default behaviour, but apparently not)?

edit retag flag offensive reopen delete report spam

Closed as "the question is answered, right answer was accepted" by Petter Myhre at 2014-10-10 08:47:33 +0100

Comments

6 answers

Sort by » oldest newest most voted
4
KTOWN gravatar image

answered 2014-01-09 19:53:59 +0100

mariusheil gravatar image

updated 2016-02-08 11:34:53 +0100

The main issue here seems to be that you need to install the J-Link drivers before installing the SDK, which adds the nrfjprog.exe utility. Installing things in this order I no longer have issues with nrfjprog complaining about JLinkARM.dll unless it's in the same folder as the Makefile.


I have just found that by editing the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SEGGER\J-Link and udating the Path to the installed version, nrfjprog was able to find the correct installation. This solved it for me without having to reinstall everything.

edit flag offensive delete publish link more

Comments

It looks this issue typically happens when you uninstalled a higher version of jlink and then installed a lower version. the registry seems to pointing to the higher version (which does not exist) so a manual edit of the registry seems to be needed. This could be complicated by the fact that the version of jlink being bundled by different nordic tools are often not clear so this can easily happen without the user's knowldege, esp. when downgrading tool versions.

David Edwin ( 2016-10-10 09:49:00 +0100 )editconvert to answer
1
Havard gravatar image

answered 2014-04-11 11:51:40 +0100

I faced this problem once when I downgraded from a newer jlink to an older version. The windows registry still pointed to the newer version. I replaced the path with the path of my older version and then it worked.

edit flag offensive delete publish link more
1
rpkchan gravatar image

answered 2015-06-15 06:21:37 +0100

zhangmuyang gravatar image

updated 2017-08-07 04:14:19 +0100

For those who are facing the JLinkARM.dll ERRORs in nrfjprog, I faced the same problem when I tried to downgrade to previous version of nRF Tools.

I struggled for a few days, and found that it is because there are some residues in the installation folder as well as the windows registry, even I have uninstalled the tools.

To systematically clean up the installation, you need to:

  1. Uninstall all Nordic-related tools and SEGGER-related tools through windows "Programs and Features".

  2. Completely remove the folder "C:\Program Files\Nordic Semiconductor".

  3. Search for keywords "nrf51", "SEGGER" and "JLink" in windows registry, and delete related keys.

Thereafter, you can install Nordic-related tools again.

edit flag offensive delete publish link more
1
samuele.rimella gravatar image

answered 2015-06-22 09:11:08 +0100

lch0821 gravatar image

updated 2016-02-27 04:59:26 +0100

I've the same problem. Looking in the windows register I found a wrong path to J-Link (maybe due to different try of JLink installation).

Verify that in this key [HKEY_CURRENT_USER\Software\SEGGER\J-Link] the string 'InstallPath' has the right path to the Jlink installation folder.

BR.

edit flag offensive delete publish link more
0

answered 2014-10-08 23:49:52 +0100

I have the same problem right now

ERROR: JLinkARM.dll could not be located after the installation info in the registry or in the current folder. Please reinstall JLinkARM software package.

I uninstall all and tried installing fisrt the SDK but it did not work

I'm also following the steps in: nAN-29 nRF51 Development with GCC and Eclipse Application Note v1.1.pdf Is there something else I can do?

Thanks

edit flag offensive delete publish link more
0
Edgar Gonzalez gravatar image

answered 2014-10-10 05:13:47 +0100

I have the same problem right now

ERROR: JLinkARM.dll could not be located after the installation info in the registry or in the current folder. Please reinstall JLinkARM software package.

I uninstall all and tried installing fisrt the SDK but it did not work

Is there something else I can do?

Thanks

edit flag offensive delete publish link more

Comments

1

This is not an answer. Please ask it as a new question, and link to this one if it's relevant.

Petter Myhre ( 2014-10-10 08:47:26 +0100 )editconvert to answer

Question Tools

1 follower

Stats

Asked: 2014-01-09 19:34:13 +0100

Seen: 5,534 times

Last updated: feb. 08 '16