<?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>JLink Fails to Connect using nrfjprog inside Windows Subsystem Linux 2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82738/jlink-fails-to-connect-using-nrfjprog-inside-windows-subsystem-linux-2</link><description>Hello, 
 
 I&amp;#39;m unable to flash code to my nRF52840 board with my JLink Edu debugger after my project builds. Currently I have my development environment setup with VS Code + nRF Connect running on Windows 10, but all the libraries, toolchains etc. exist</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Dec 2021 04:06:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82738/jlink-fails-to-connect-using-nrfjprog-inside-windows-subsystem-linux-2" /><item><title>RE: JLink Fails to Connect using nrfjprog inside Windows Subsystem Linux 2</title><link>https://devzone.nordicsemi.com/thread/343294?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 04:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a450c676-c0b8-4ae0-9a08-a6a3244b3bfb</guid><dc:creator>ParkerMcD</dc:creator><description>&lt;p&gt;Turns out the udev service needs to be restarted each time you start a new session in WSL2 when connecting some USB devices over USBIPD (at least in this version of WSL).&amp;nbsp; I used the following commands in Ubuntu 20.04 LTS:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;sudo service udev restart
sudo udevadm control --reload&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Solution found here:&amp;nbsp;&amp;nbsp;&lt;a title="Segger J-Link Issue (Github)" 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;&lt;/p&gt;
&lt;p&gt;I can now flash my board from WSL2!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>