<?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>nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82579/nrf-connect-linux-desktop-j-link-issues</link><description>Good day 
 I have Ubuntu 20.04.3 LTS installed on my laptop + fresh installation ( ~/.nrfconnect-apps was cleared and app reinstalled ) of nRF Connect 3.9.1 
 I use Bluetooth Low Energy application 3.0.0 and Programmer application 2.0.1, my tools are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Dec 2021 09:15:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82579/nrf-connect-linux-desktop-j-link-issues" /><item><title>RE: nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/thread/343814?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 09:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07f0a894-41a4-43c0-9ef5-d99d51dd68fe</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="swisst"]&lt;div&gt;&lt;div&gt;12:43:14.681 Application data folder: /home/vvs/.config/nrfconnect/pc-nrfconnect-programmer&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;12:43:14.722 Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;12:43:23.940 Using nrfjprog to communicate with target&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;12:43:23.944 Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: Unknown value (ffffff5e)&lt;/div&gt;&lt;/div&gt;[/quote][quote user="swisst"]From other hand if I specify exact path to JLink dll like:[/quote]
&lt;p&gt;It seems that you are the victim of a bug with the older nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/64956/nrfjprog-on-linux-support-for-ld_library_path-broken-from-10-5-0-onwards-and-opt-segger-jlink-hardcoded-instead"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/64956/nrfjprog-on-linux-support-for-ld_library_path-broken-from-10-5-0-onwards-and-opt-segger-jlink-hardcoded-instead&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It expects the libjlinkarm.so to be in $PATH or at /opt/SEGGER/JLink.&lt;/p&gt;
&lt;p&gt;If you symlink your path/to/nrf-tools/JLink_Linux_V688..../ to /opt/SEGGER/JLink, it should be able to pick it up in nrf connect for desktop as well. This issue is fixed in newer versions of nrfjprog.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/thread/343738?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 16:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a6537c-7107-4a0a-b4ef-9a44b93333cb</guid><dc:creator>swisst</dc:creator><description>&lt;p&gt;If I use the command you ask to execute I get such output to log&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[2021-Dec-15 18:13:46] [ info] --------------------------------------------------------------------------------
[2021-Dec-15 18:13:46] [ info] nrfjprog --memrd 0 -f nrf52 --log 
[2021-Dec-15 18:13:46] [ info] nrfjprog version 10.12.1 
[2021-Dec-15 18:13:46] [ info] --------------------------------------------------------------------------------
[2021-Dec-15 18:13:46] [debug] [ nRF0x0] - open_dll
[2021-Dec-15 18:13:46] [ info] [ nRF0x0] - Load library at /opt/nrfjprog/libjlinkarm_nrf52_nrfjprogdll.so.
[2021-Dec-15 18:13:46] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Dec-15 18:13:46] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Dec-15 18:13:46] [ info] [Backend] - Logger callback at 0x55e38e9b1130 registered in Segger backend logger.
[2021-Dec-15 18:13:46] [ info] [  JLink] - [Info    ] [JLink     ] Logger callback at 0x55e38e9b1130 registered in JLink logger.
[2021-Dec-15 18:13:46] [debug] [nRF520x0] - open
[2021-Dec-15 18:13:46] [debug] [Backend] - open_dll
[2021-Dec-15 18:13:46] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Dec-15 18:13:46] [ info] [Backend] - Load library at libjlinkarm.so.
[2021-Dec-15 18:13:46] [ info] [Backend] - Dll failed to open.
[2021-Dec-15 18:13:46] [debug] [Backend] - close
[2021-Dec-15 18:13:46] [debug] [Backend] - Segger Backend closed.
[2021-Dec-15 18:13:46] [debug] [nRF520x0] - close
[2021-Dec-15 18:13:46] [debug] [nRF520x0] - nRF family DLL closed
[2021-Dec-15 18:13:46] [debug] [ nRF0x0] - close_dll&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;From other hand if I specify exact path to JLink dll like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog&amp;#160;--jdll &amp;lt;project path&amp;gt;/nrf-tools/JLink_Linux_V688a_x86_64/libjlinkarm.so&amp;#160;--memrd 0 -f nrf52&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I get valid output like&lt;/p&gt;
&lt;p&gt;0x00000000: 20000400&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/thread/343708?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 14:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd8aa67d-d4ac-4e12-9333-a157357452ab</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="swisst"]&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I still have issues with the second use case: Programmer application + JLink + nrf52840 target. Even after downgrade and with attached target I&amp;nbsp;can not make it work and get an error in log output ( specified above)&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;My apologies for misunderstanding. Are you able to access the debugger + nrf directly using other tools?&lt;/p&gt;
&lt;p&gt;Like nrfjprog:&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd 0 -f nrf52&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/thread/343706?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 14:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdbf56d4-2f8d-4aaa-83c7-46f3a50d153f</guid><dc:creator>swisst</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for reply. I believe you did not get my previous message correctly - anyway I&amp;#39;ll try to explain from scratch.&lt;/p&gt;
&lt;p&gt;I use nRF USB dongle with Bluetooth Low Energy application. Regarding this part all issues were solved after I downgrade&amp;nbsp;&lt;span&gt;connect for Desktop to 3.7.1 ( with all apps ).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Answer for your&amp;nbsp;recent question: It is not my case but even so all works as expected after downgrade. nRF USB dongle is visible in both applications I use ( BLE and programmer ), it can be put into bootloader and re-flashed with both applications.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I still have issues with the second use case: Programmer application + JLink + nrf52840 target. Even after downgrade and with attached target I&amp;nbsp;can not make it work and get an error in log output ( specified above)&lt;/span&gt;&lt;/p&gt;
[quote userid="99142" url="~/f/nordic-q-a/82579/nrf-connect-linux-desktop-j-link-issues/343030#343030"]&lt;div class="core-log-entry core-log-level-info"&gt;&lt;div class="core-log-time"&gt;12:43:14.681 Application data folder: /home/vvs/.config/nrfconnect/pc-nrfconnect-programmer&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info"&gt;
&lt;div class="core-log-time"&gt;12:43:14.722 Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info"&gt;
&lt;div class="core-log-time"&gt;12:43:23.940 Using nrfjprog to communicate with target&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-error"&gt;
&lt;div class="core-log-time"&gt;12:43:23.944 Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: Unknown value (ffffff5e)&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/thread/343154?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 12:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc1d669-3466-45a6-ba41-b8de1ca82b8c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="swisst"]&lt;div&gt;&lt;div&gt;12:43:14.681 Application data folder: /home/vvs/.config/nrfconnect/pc-nrfconnect-programmer&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;12:43:14.722 Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;12:43:23.940 Using nrfjprog to communicate with target&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;12:43:23.944 Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: Unknown value (ffffff5e)&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Are you able to see a successful detection of the dongle, ie. that it&amp;#39;s in bootloader mode?&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s some pictures on how it should look:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/thread/343030?ContentTypeID=1</link><pubDate>Sun, 12 Dec 2021 10:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b9a38ee-d32e-41fc-8952-260d1b0d1530</guid><dc:creator>swisst</dc:creator><description>&lt;p&gt;Thank you for quick reply&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The manual via your link worked good for Bluetooth Low Energy application - it works as expected&lt;/p&gt;
&lt;p&gt;The only concern is that - Delete bond information is not active for selected adapter ( adapter was re-flashed on application startup, 1 device was bonded )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding Programmer application - the issue still exist but with other log message&lt;/p&gt;
&lt;div class="core-log-entry core-log-level-info"&gt;
&lt;div class="core-log-time"&gt;12:43:14.681 Application data folder: /home/vvs/.config/nrfconnect/pc-nrfconnect-programmer&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info"&gt;
&lt;div class="core-log-time"&gt;12:43:14.722 Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info"&gt;
&lt;div class="core-log-time"&gt;12:43:23.940 Using nrfjprog to communicate with target&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-error"&gt;
&lt;div class="core-log-time"&gt;12:43:23.944 Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: Unknown value (ffffff5e)&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;2 last lines come after programmer device selected&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Linux Desktop J-Link issues</title><link>https://devzone.nordicsemi.com/thread/342908?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 12:25:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b25d4af-8237-4f39-9488-b1ed0c47ca01</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, we have a known issue with latest versions of nRF connect for Desktop (3.8.0 and 3.9.0), where the workaround is to downgrade to 3.7.0 at this time, and install the corresponding application versions for this version.&lt;/p&gt;
&lt;p&gt;More details and howto do this is described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81700/how-to-downgrade-nrf-connect"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/81700/how-to-downgrade-nrf-connect&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and report back if you still run into any issues?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>