<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9937/nrfjprog-wants-jlinkarm-dll-on-linux</link><description>First, obviously error message is not correct, dll&amp;#39;s are not used on linux. Message should give correct file name instead of prewritten one. 
 I have installed latest JLink 5.02g. And tried both 32 and 64 bit versions.
I tried to see with strace what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Aug 2017 17:16:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9937/nrfjprog-wants-jlinkarm-dll-on-linux" /><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36873?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 17:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40fa0cfc-1417-4c1c-a274-559e7c87dd34</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;Adding the libjlinkarm.so to /usr/lib can be done with ln command;
Enter /usr/lib, type: &amp;gt; ln -s  {/path/to/segger-lib-file-name}   {segger-lib-file-name}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36872?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 17:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eba6dcb-8aa6-4b10-b7b2-7c67dfea79e8</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;I believe the original problem of this post was due to a bug in the nrfjprog executable and the executable being placed inside the SEGGER/JLink folder, and it saying the .dll was needed and not a .so. This should have been resolved, but i would still not recommend placing the nrfjprog files inside the SEGGER/JLink folder structure as this structure can change based on how SEGGER releases their tools.&lt;/p&gt;
&lt;p&gt;Creating a link to libjlinkarm.so inside the nrfjprogs folder should also work, but then i would rather suggest adding this link to the /usr/lib or /lib folder as would be the proper way to get this working. nrfjprog uses dlopen() as mentioned here: &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrf5x_command_line_tools%2Fnrf5x_nrfjprogexe.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;, and dlopen() will automatically search /lib and /usr/lib.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36871?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 16:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adfc02b9-f7e0-4d28-bec5-f7146742c922</guid><dc:creator>tralamazza</dc:creator><description>&lt;p&gt;Simply create a link to libjlinkarm.so inside nrfjprog&amp;#39;s folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36870?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 14:20:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cacb806d-2de5-41cb-8ca8-92414b430bff</guid><dc:creator>Juha Okkonen</dc:creator><description>&lt;p&gt;Yeahh, I just did that and it started working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36869?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 14:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb0ec944-9779-44f3-a496-ef38b7eeff37</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;Hi Juha,&lt;/p&gt;
&lt;p&gt;There is a problem is you place the nrfjprog .so files inside the SEGGER/JLink folder. So please put those files in another place and it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36868?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 13:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db903c2c-2337-433b-b95a-6fbda1e2388a</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;Could you try and move the nrfjprog.so files away from the SEGGER JLink folder to somewhere else? It seems that if you leave the nrfjprog files within the SEGGER folder, it will not work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36867?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 13:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f5b0ef-cc7a-49b3-8e66-4fa835a9e82e</guid><dc:creator>Juha Okkonen</dc:creator><description>&lt;p&gt;And I do have both JLink and nrfjprog in /opt/SEGGER/JLink-directory, so it should work.
But the strange thing is that nrfjprog doesn&amp;#39;t event try to read libjlinkarm.so from anywhare.
Last operation it does is reading /opt/SEGGER/JLink/libnrfjprogdll.so.7 for 832 bytes worth and then closes it and gives irrelevant error message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36866?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 12:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908d5d12-42e9-459f-a921-73be3b12c42d</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;If you want, you can use the python module instead of the executable; pynrfjprog; which will allow you to provide the PATH to the segger shared library in the open(...) function call. This will forward the provided path to the nrfjprog DLLs and use this one. Thus, if you install the SEGGER shared library in for example /usr/lib and only provide libjlinkarm.so as path to the pynrfjprog open, our shared libraries should find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36865?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 12:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d339321d-00a6-4402-833d-77576db1a93e</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;Hi Juha,
The reason for the hardcoded link to the SEGGER shared library is that the implementation currently has been done in a &amp;quot;windows&amp;quot; way. This will be fixed in future releases allowing the SEGGER shared library to be located in for example /usr/lib, but the executable will for example still also look in /opt/SEGGER/JLink, sorry if this causes issue for you right now.&lt;/p&gt;
&lt;p&gt;This has only been tested on Ubuntu: If you download the .tar from our website, and extract it into a folder, for example: ~/Documents/nrfjprog_linux/
If the segger software is installed in /opt/SEGGER/JLink/ by using their .deb installer (which will place it there);
Then you should be able to run from within the nrfjprog_linux folder: ./nrfjprog -r
And it should work fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36864?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 12:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f138d8d-5807-4e1f-82c3-031079df5e4e</guid><dc:creator>Juha Okkonen</dc:creator><description>&lt;p&gt;I could correct the code if you just point me to nrfjprog sources. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36863?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 12:20:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb241da1-87aa-4714-99d4-d6c1a1d67dba</guid><dc:creator>Juha Okkonen</dc:creator><description>&lt;p&gt;Copied original directoris ( both 32 bit and 64 bit versions ) into expected paths, but no success.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36862?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 12:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6414a5f3-ff65-4f87-bcc9-cc3d1f04ce72</guid><dc:creator>Juha Okkonen</dc:creator><description>&lt;p&gt;I&amp;#39;m not using Python programs so version doesn&amp;#39;t matter.
Nrfjprog files are located in the same directory with JLink files. And I found from the strace output the requirement for hardcoded directory name /opt/SEGGER/JLink which seems bit ridiculous!!
I did that with link so I&amp;#39;ll test renaming the actual directory....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog wants JLinkARM.dll on linux</title><link>https://devzone.nordicsemi.com/thread/36861?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 10:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:440cdf19-3000-4ad2-920d-029a4c828c38</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;The problem here was that the nrfjprog files were placed in the /opt/SEGGER/JLink/ folder. This does not work with the current release and thus caused the executable to crash. Will probably be fixed in a future release.
Solution for now is to not place the nrfjprog files in the /opt/SEGGER/JLink folder.&lt;/p&gt;
&lt;p&gt;Hi Juha, have you looked at this recent blog post regarding the current limitations of the Linux version of nRF5x-Tools?
&lt;a href="https://devzone.nordicsemi.com/blogs/778/nrf5x-tools-and-nrf5x-pynrfjprog-includes-linux-an/"&gt;nRF5x-Tools and nRF5x-Pynrfjprog Includes Linux and Python 3 Support&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have you placed your nrfjprog files inside the SEGGER folder as well?
Where are your nrfjprog - .so files located, and where is the nrfjprog executable located?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>