<?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>nRF52840 DK disconnects when programming in a virtual Linux environment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76877/nrf52840-dk-disconnects-when-programming-in-a-virtual-linux-environment</link><description>Hi, 
 I am trying to prgram the nRF52840 DK board (revision 2.0.1) within a virual machine (VirtualBox running Linux Mint). I have installed the SDK and the nrf command line. When I run &amp;quot;make flash&amp;quot; in the directory of project (e.g. /home/damian/Documents</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Jun 2021 20:45:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76877/nrf52840-dk-disconnects-when-programming-in-a-virtual-linux-environment" /><item><title>RE: nRF52840 DK disconnects when programming in a virtual Linux environment</title><link>https://devzone.nordicsemi.com/thread/317810?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 20:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c329f425-692f-4d0f-9d39-ece6040c4646</guid><dc:creator>DamianSof</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;Yes the firmware update you suggested fixed it. Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK disconnects when programming in a virtual Linux environment</title><link>https://devzone.nordicsemi.com/thread/317762?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 14:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65c409b5-c6f2-46ce-945e-cc19fa977677</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>[quote user="DamianSof"][2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Updating firmware:&amp;nbsp; J-Link OB-SAM3U128-V2-NordicSemi compiled Feb&amp;nbsp; 2 2021 16:47:20&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00[/quote]
&lt;p&gt;Looks to me like it&amp;#39;s trying to upgrade the J-Link OB firmware on the DK before actually flashing the application on the nrF52, but then fails.&lt;/p&gt;
&lt;p&gt;Can you try to install the newest &lt;a href="https://www.segger.com/downloads/jlink/"&gt;JLink drivers&lt;/a&gt; on the host computer, and then open the JLink Commander or similar to do the JLink OB firmware upgrade? Then you can try to connect the DK to the VM again and flash the application. It should now program the application without trying to upgrade the JLink FW first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK disconnects when programming in a virtual Linux environment</title><link>https://devzone.nordicsemi.com/thread/317704?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 12:15:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:499e60e1-7c62-46b9-85d8-68afd9aac4c4</guid><dc:creator>DamianSof</dc:creator><description>&lt;p&gt;Sure Stian,&lt;/p&gt;
&lt;p&gt;Here is the output of the log.log file&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[2021-Jun-29 22:10:53] [ info] --------------------------------------------------------------------------------&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] nrfjprog -f nrf52 --log --program _build/nrf52840_xxaa.hex --sectorerase &lt;br /&gt;[2021-Jun-29 22:10:53] [ info] nrfjprog version 10.12.2 &lt;br /&gt;[2021-Jun-29 22:10:53] [ info] --------------------------------------------------------------------------------&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [ nRF0x0] - open_dll&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [ nRF0x0] - Load library at /home/damian/Documents/nRF-Command-Line-Tools_10_12_2_Linux-amd64/nrfjprog/libjlinkarm_nrf52_nrfjprogdll.so.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [ nRF0x0] - Library loaded, loading member functions.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [ nRF0x0] - Member functions succesfully loaded.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [Backend] - Logger callback at 0x55bd2b944150 registered in Segger backend logger.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Logger callback at 0x55bd2b944150 registered in JLink logger.&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [nRF520x0] - open&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - open_dll&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [Backend] - Load library at /opt/SEGGER/JLink/libjlinkarm.so.7.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [Backend] - Library loaded, loading member functions.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [Backend] - Member functions succesfully loaded.&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - dll_version&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [Backend] - Segger dll version 7.22.b loaded.&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [ nRF0x0] - enum_emu_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [nRF520x0] - enum_emu_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - is_connected_to_emu&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - enum_emu_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - ---just_enum_emu_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - ---just_get_num_emus&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - is_connected_to_emu&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [ nRF0x0] - connect_to_emu_with_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [nRF520x0] - connect_to_emu_with_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - is_connected_to_emu&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - connect_to_emu_with_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - is_connected_to_emu&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - ---just_enum_emu_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - ---just_get_num_emus&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - ---just_connect_to_emu_with_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [debug] [Backend] - ---just_connect_to_emu_without_snr&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [Backend] - Segger logging enabled.&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Updating firmware:&amp;nbsp; J-Link OB-SAM3U128-V2-NordicSemi compiled Feb&amp;nbsp; 2 2021 16:47:20&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Updating firmware:&amp;nbsp; J-Link OB-SAM3U128-V2-NordicSemi compiled Feb&amp;nbsp; 2 2021 16:47:20&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00&lt;br /&gt;[2021-Jun-29 22:10:53] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&amp;nbsp;&amp;nbsp;&amp;nbsp; ***** Error: &lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Communication timeout. Emulator did not re-enumerate.&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&amp;nbsp;&amp;nbsp;&amp;nbsp; ***** Error: &lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] Cannot connect to J-Link&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] - 47139.052ms returns &amp;quot;Communication timeout. Emulator did not re-enumerate. Cannot connect to J-Link&amp;quot; &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] JLINK_HasError() &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [Backend] - JLinkARM.dll Open returned error &amp;#39;Communication timeout. Emulator did not re-enumerate.&lt;br /&gt;Cannot connect to J-Link&amp;#39;&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [Backend] - is_connected_to_emu&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] JLINK_IsOpen() &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] - 0.004ms returns 0x00 &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] JLINK_HasError() &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [ nRF0x0] - close_dll&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [nRF520x0] - close&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [Backend] - is_connected_to_emu&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] JLINK_IsOpen() &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] - 0.004ms returns 0x00 &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] JLINK_HasError() &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [Backend] - close&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [Backend] - disconnect_from_emu&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [Backend] - is_connected_to_emu&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] JLINK_IsOpen() &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] - 0.003ms returns 0x00 &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [ info] [&amp;nbsp; JLink] - [Info&amp;nbsp;&amp;nbsp;&amp;nbsp; ] [JLink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] JLINK_HasError() &amp;nbsp;&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [Backend] - Segger Backend closed.&lt;br /&gt;[2021-Jun-29 22:11:40] [debug] [nRF520x0] - nRF family DLL closed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK disconnects when programming in a virtual Linux environment</title><link>https://devzone.nordicsemi.com/thread/317695?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 12:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7311502a-c95b-4a6c-b735-e80fa6d30780</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, can you try to run nrfjprog with the --log argument and provide the generated log.log file? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>