<?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>Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85642/program-nrf9160dk-inside-of-an-ubuntu-container-on-windows-docker-desktop</link><description>Hi everyone, 
 i wrote a dockerfile with all nedeed dependencies and toolchain setups for software development of nRF9160DK. I would link to use Visual Studio Code running on the docker container with nRF Connect extension. 
 Until now i&amp;#39;m able to create</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Mar 2022 11:44:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85642/program-nrf9160dk-inside-of-an-ubuntu-container-on-windows-docker-desktop" /><item><title>RE: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357918?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 11:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:018852b9-355a-4701-816f-4d33dc0b332d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;It looks like you are experiencing usb pass-through issues with docker.&lt;/p&gt;
&lt;p&gt;We do not have any experience with docker in windows, so I would recommend that you ask about this in docker related forums.&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: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357911?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 11:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c47c49-67b5-4618-b5d9-c5cb31c41836</guid><dc:creator>Salvo</dc:creator><description>&lt;p&gt;Here what i get:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@84bad2adf27d:/nRF91_Projects/hello_world# JLinkExe
SEGGER J-Link Commander V7.63b (Compiled Mar  1 2022 16:41:19)
DLL version V7.63b, compiled Mar  1 2022 16:41:04

Connecting to J-Link via USB...FAILED: Cannot connect to J-Link.
J-Link&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357908?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 11:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fda950d1-7d5d-4876-b57d-415277001b33</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;What does &amp;quot;JLinkExe&amp;quot; output if you try to run that manually?&lt;/p&gt;
&lt;p&gt;It sounds like you have permission problems. Have you followed any guides on how to forward a usb device to a docker instance? If you google &amp;quot;segger docker&amp;quot; - you should be able to find more information/guides on how to set it up.&lt;/p&gt;
&lt;p&gt;&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: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357906?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 10:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ffff57-77c7-4f54-bf2f-817d05ff6b69</guid><dc:creator>Salvo</dc:creator><description>&lt;p&gt;Thanks to&amp;nbsp;&lt;a href="https://github.com/microsoft/vscode-remote-release/issues/6296"&gt;this link&lt;/a&gt;&amp;nbsp;i solve the issue of internal error. Now i get:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@84bad2adf27d:/nRF91_Projects/hello_world# nrfjprog -v
nrfjprog version: 10.15.3 external
JLinkARM.dll version: 7.63b&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But, when i try to connect to the dk for i.e. a sectorerase command i get the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@84bad2adf27d:/nRF91_Projects/hello_world# nrfjprog --sectorerase -f nrf91
ERROR: Unable to connect to a debugger.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With log parameter:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@84bad2adf27d:/nRF91_Projects/hello_world# nrfjprog --sectorerase -f nrf91 --log
ERROR: Unable to connect to a debugger.
ERROR: [SeggerBackend] - JLinkARM.dll Open returned error &amp;#39;Cannot connect to J-Link.&amp;#39;
ERROR: [SeggerBackend] - JLinkARM.dll Open returned error &amp;#39;Failed to open DLL&amp;#39;
ERROR: [SeggerBackend] - Cannot call is_connected_to_device when connect_to_emu_without_snr or connect_to_emu_with_snr has not been called.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Return of lsusb command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@84bad2adf27d:/nRF91_Projects/hello_world# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1366:1055 SEGGER J-Link
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357902?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 10:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52dc2a50-bb44-42f5-b187-49e84dfc4161</guid><dc:creator>Salvo</dc:creator><description>&lt;p&gt;I discover that even if i run a sample command i get errors:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@52678d337f2f:~# nrfjprog -v
ERROR: An internal error has occurred, please try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently installing JLink drivers with&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;RUN dpkg -i JLink_Linux_V763b_x86_64.deb &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and nrf command line tools with&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;RUN dpkg -i nrf-command-line-tools_10.15.3_amd64.deb &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Am i doing this correctly?&lt;/p&gt;
&lt;div style="height:14px;left:8px;position:absolute;top:359px;width:125.063px;" id="gtx-anchor"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble gtx-bubble" style="left:56px;top:243px;"&gt;
&lt;div class="jfk-bubble-content-id" id="bubble-4"&gt;
&lt;div id="gtx-host"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowdown" style="left:62.5px;"&gt;
&lt;div class="jfk-bubble-arrowimplbefore"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrowimplafter"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357898?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 10:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ec5dd5-6fc5-4759-94c1-095164527566</guid><dc:creator>Salvo</dc:creator><description>&lt;p&gt;Do you mean through the nrfjprog commands?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357894?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 10:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31715b5a-b203-4e85-b90f-817ca1cc7cc6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Can you interface the DK manually inside the container?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357889?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 09:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6412fd2-affe-4db6-9399-209ff93c9bd2</guid><dc:creator>Salvo</dc:creator><description>&lt;p&gt;Yes i copied the rules, but the problem is that&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt; service udev status&lt;/pre&gt;&amp;nbsp;returns that udev is not supported inside docker containers. Any suggestion to solve this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program nRF9160DK inside of an ubuntu container on windows docker desktop</title><link>https://devzone.nordicsemi.com/thread/357371?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 10:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c1aa5f0-6a79-41b9-b2b7-f3ca1590a2dd</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;
&lt;p&gt;Q1: Did you have the segger jlink udev rules in place?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/dorssel/usbipd-win/issues/96#issuecomment-992804504"&gt;https://github.com/dorssel/usbipd-win/issues/96#issuecomment-992804504&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q2: Does nrfjprog work as intended in the shell?&lt;/p&gt;
&lt;p&gt;for instance &amp;quot;nrfjprog --program /path/to/zephyr.hex --sectorerase -f nrf52 --verify&amp;quot;&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></channel></rss>