<?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 and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98252/nrfjprog-and-jlink-not-found-on-linux-ubuntu-22-lts</link><description>i had a up to date segger install before setting up nordic tools. 
 i have stored the nordic command line tools profile local. 
 both are in path ~ reachable from command line. 
 the nordic vs code plugin seems to not use the path. 
 how to fix the vs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Apr 2023 13:26:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98252/nrfjprog-and-jlink-not-found-on-linux-ubuntu-22-lts" /><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/419292?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 13:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c4535f-c76d-4ec2-a32f-092bd7a1098d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;see. From&amp;nbsp;the information you provided here, I too agree with your conclusion.&lt;/p&gt;
&lt;p&gt;I will inform the VS Code Extension developer of your observations. Right now is not a good time due to the holiday. I will do it after the holiday, next week.&lt;/p&gt;
&lt;p&gt;Thank you for the patience and information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/419267?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 12:28:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1feb38a0-bf8b-43b1-beef-023e470da9fe</guid><dc:creator>_rm</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;after writing my answer i uninstalled segger jlink.&lt;/p&gt;
&lt;p&gt;i checked for the existence of the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;libjlinkarm.so b&lt;/span&gt;efore, it existed where SEGGER was installed.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;i previously installed it from source/.tgz as recommended by some in the segger forum to a location in my profile.&lt;/p&gt;
&lt;p&gt;Then i installed it from the .deb. (-&amp;gt; default location) this has the downside that i can not have different profiles with different versions.&lt;/p&gt;
&lt;p&gt;the default .deb installation works.&lt;/p&gt;
&lt;p&gt;my conclusions.&lt;br /&gt;&lt;br /&gt;there are a limited number of quite hardcoded paths where the vscode extension searches for files - not necessarily where the files are installed. &lt;/p&gt;
&lt;p&gt;besides that the error message is misleading.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;my suggestion would be, that the documentation should point out that the segger offered and working source /.tgz install may cause problems and is not really supported. &lt;br /&gt;additionally i would suggest to support the source/.tgz install and to handle the search for components from segger more flexible.&lt;br /&gt;making the error message in the vscode extension more precise could also help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for your effort&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/419222?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 10:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5504a51b-da45-4b33-987a-27f4f7c3ec00</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I understand fully well that jlink is in your PATH from the first screenshot. Please know that&amp;nbsp;I considered your input carefully.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think it might help if I explain the motivation for my&amp;nbsp;suggestions.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I have requested you to compare the path from a regular terminal to that in a &lt;strong&gt;&lt;em&gt;toolchain installation&lt;/em&gt;&lt;/strong&gt; to ensure that they are the same. The reason is because the toolchain setup some of the paths itself, and it could have done it somehow incorrectly that causes this issue.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;The suggestion to run &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrfjprog -v&lt;/span&gt; is for two purposes: 1. See what version of nrfjprog is installed for further analysis. 2. See whether&amp;nbsp;the nrfjprog failure is due to jlink. We have seen that it is #2. Refer to the error message:&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;libjlinkarm.so: cannot open shared object file&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;This indicates that there is a problem with the J-Link installation. I understand that the Segger software works, but it could also not be dependent on the missing/malfunctioning part. As shown in this&amp;nbsp;DevZone post, not all J-Link installations will give you all the files necessary:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96497/nrfjprog-ubuntu-jlinkarm-dll-load-failed"&gt;nrfjprog ubuntu JLinkARM DLL load failed&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Therefore, please still try to reinstall J-Link following Håkon&amp;#39;s suggestion.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;We do not rule out the possibility of issues in our tools. However, we will need the Support Information from the extension, as I have requested.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please also be informed that it is the Easter holiday here, and I will be out of office from today, returning on Tue Apr 11. My apology for the inconvenience. Please still response if there are any progresses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/419200?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 09:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e44b6bff-b423-4b72-bc71-71f6e0ef55c0</guid><dc:creator>_rm</dc:creator><description>&lt;p&gt;point is: jlink is working.&lt;/p&gt;
&lt;p&gt;i use that laptop with a segger jlink succesfu and can show that&amp;nbsp; eg with teamviewer if needed.&lt;/p&gt;
&lt;p&gt;i showed already that jlink is found in the path. first post -&amp;gt; image -&amp;gt; which&lt;/p&gt;
&lt;p&gt;point is: the nordic vscode extension does say that it does not find jlink - despite i being in the path.&lt;/p&gt;
&lt;p&gt;as a first step i&amp;#39;d suggest to fix the wrong/misleading error message.&lt;/p&gt;
&lt;p&gt;from the links you gave&lt;/p&gt;
&lt;p&gt;&amp;quot;Yes, you need to install the JLink too. &lt;span&gt;You must add the folder containing JLink.exe to your path. This should help you.&lt;/span&gt;&amp;quot; : that is done.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;code&gt;sudo apt remove jlink&lt;br /&gt;&lt;/code&gt;&lt;code&gt;sudo dpkg -i JLink_Linux_&amp;lt;version&amp;gt;.deb&amp;quot;&lt;br /&gt;&lt;/code&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;well, segger software works, then the vscode extension should be able to use it. &lt;br /&gt;&lt;br /&gt;&amp;quot;VS Code may HAVE FOUND &lt;code&gt;nrfjprog&lt;/code&gt;, but it tried running &lt;code&gt;--version&lt;/code&gt; flag in order to determine the version number, and it caused the following to appear in its input buffer: ...&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This causes it to return an error that assumed that nrfjprog wasn&amp;#39;t installed in $PATH, which is the default assumption. Actually it was missing a shared object library that needed to be installed, which made it malfunction.&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;My solution was to download and install Segger&amp;#39;s JLink package, and then I ran:&lt;br /&gt;&amp;quot;sudo dpkg -i JLink_Linux_*Version*_*platform*.deb&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;br /&gt;a) there seems to be a flaw in the vscode extension. wrong handling of input. that should be fixed.&lt;br /&gt;b) as&amp;nbsp; the segger software is installed and not found maybe enabling to explicitly configure the path in the extension should help.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/419000?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 09:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e16eeb58-77f5-4672-a593-bee4da89b413</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Looks like it&amp;#39;s jlink that is not working correctly, causing nrfjprog to malfunction, and the VS Code Extension to complain about both of them.&lt;/p&gt;
&lt;p&gt;Here are a few previous DevZone cases regarding this. All of them share a recommendation to reinstall J-Link tools in some way, so I think it should be the fix for you.&amp;nbsp;Please go over them and see if following the exact steps described there helped you.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/26921/jlinkarm-dll-load-failed-on-ubuntu/105773"&gt;RE: JLinkARM DLL load failed on Ubuntu&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/89642/vs-code-nrfjprog-nrf-connect-sdk-problem-on-linux"&gt;VS Code &amp;amp; nrfjprog (nRF Connect SDK) problem on Linux&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90891/ubuntu-20-04-installing-automatically-broken---nrfjprog-not-found"&gt;Ubuntu 20.04 &amp;quot;Installing automatically&amp;quot; broken - nrfjprog not found&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="_rm"]running&amp;nbsp;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt; &amp;quot;nRF Connect: Generate Support Information&amp;quot; in vscode does not yield an (error) report, just a toast message &amp;quot;generating support information&amp;quot;&lt;/span&gt;&lt;/span&gt;[/quote]
&lt;p&gt;If none of the solutions above work, please try this again. It should&amp;nbsp;print the information to the Output tab, and there should also be another toast that have a&amp;nbsp;button for quick copy of the info, like my screenshot below:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8255.pastedimage1680600031717v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/418902?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 17:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8015c64e-e0d2-4f72-8162-47d4412c5314</guid><dc:creator>_rm</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:1000px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2000x480/__key/communityserver-discussions-components-files/4/signal_2D00_2023_2D00_04_2D00_03_2D00_192439_5F00_002.png" /&gt;&lt;/p&gt;
&lt;p&gt;running&amp;nbsp;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt; &amp;quot;nRF Connect: Generate Support Information&amp;quot; in vscode does not yield an (error) report, just a toast message &amp;quot;generating support information&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/418822?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 11:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d152705-c6b5-47d8-8533-d2b46afd26c6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi _rm,&lt;/p&gt;
&lt;p&gt;Maria is out of office and I will try to support you in her absence.&lt;/p&gt;
&lt;p&gt;Could you please help try to add nrjprog and jlink to path manually from .bashrc (by&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;span dir="ltr"&gt;export PATH=&amp;lt;PATH_TO_EXE&amp;gt;:$PATH&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt;If that doesn&amp;#39;t work, please help try the following:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt;Run &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;echo $PATH&lt;/span&gt;&amp;nbsp;on a regular terminal, and a terminal launched from the Toolchain Manager and compare.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt;Run &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrfjprog -v&lt;/span&gt; on a regular terminal, and a terminal launched in VS Code&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt;If nothing obvious stands out, please&amp;nbsp;run &amp;quot;nRF Connect: Generate Support Information&amp;quot; in VS Code and share with us the information.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt;Please note that due to the Easter holiday, our responses on DevZone might be delayed. Our apologies for the inconveniences.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span dir="ltr"&gt;Hieu&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/418516?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 08:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90111104-f39b-4981-ac2c-4f7692189786</guid><dc:creator>_rm</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/signal_2D00_2023_2D00_03_2D00_31_2D00_105514_5F00_002.png" /&gt;&lt;/p&gt;
&lt;p&gt;yes ,i made that the profile is updated (relogin).&lt;/p&gt;
&lt;p&gt;now i doublechecked: boot &amp;amp; login &amp;amp; start vscode : problem persists&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog and jlink not found on linux (ubuntu 22 lts)</title><link>https://devzone.nordicsemi.com/thread/418371?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 14:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98695fa4-a24a-4209-acb8-99c680f217c5</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Did you reboot your PC after installing the command line tools? This error can appear when not rebooting the computer after install. You could also try to restart VS Code.&lt;/p&gt;
&lt;p&gt;Let me know if it helps!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>