<?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>Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77127/loss-of-usb-connection-after-flashing-zephyr-image</link><description>Hello! 
 I&amp;#39;d like to briefly introduce what I&amp;#39;m attempting to do: I&amp;#39;m trying to flash some samples from the Zephyr project into a custom board. The custom board is based on the RAK5010 which is supported by the project and uses nRF52840 as the chipset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jul 2021 06:17:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77127/loss-of-usb-connection-after-flashing-zephyr-image" /><item><title>RE: Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/thread/319272?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 06:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa33f754-fa0b-48f2-aef2-dae6093fb6cc</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Renato,&lt;/p&gt;
[quote user="rys"]Sorry, I&amp;#39;m still new with the device tree concept, I thought that you were talking about the file from the boards/ directory.[/quote]
&lt;p&gt;No worries :-) Not that easy understanding the concept right away. You probably already have found it, but this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/zephyr/guides/dts/index.html#devicetree-guide"&gt;guide&lt;/a&gt; did help me a lot when starting with Zephyr, especially this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/zephyr/guides/dts/howtos.html#devicetree-howtos"&gt;part&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user="rys"]Currently, no. But this point makes sense, I&amp;#39;ll try to see whether I can test this, thanks![/quote]
&lt;p&gt;That would be great!&amp;nbsp;&lt;/p&gt;
[quote user="rys"]No, I was unaware of this build artifact. I&amp;#39;ll check the docs and the zephyr.dts after re-building to see whether my modifications on the overlay were successful or not.[/quote]
&lt;p&gt;Ok, thank you!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/thread/319175?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9df7a520-dbef-4183-9786-7c2e468328d2</guid><dc:creator>rys</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
[quote userid="100109" url="~/f/nordic-q-a/77127/loss-of-usb-connection-after-flashing-zephyr-image/319083#319083"]&lt;span lang="en-GB"&gt;I’m &lt;/span&gt;&lt;span lang="en-GB"&gt;very &lt;/span&gt;&lt;span lang="en-GB"&gt;sorry for being unclear, but the snippet I provided actually was from the original&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span lang="en-GB"&gt;zephyr.dts&lt;/span&gt;&lt;/em&gt;&lt;span lang="en-GB"&gt;, which is automatically generated from the devicetree in&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span lang="en-GB"&gt;../build/zephyr&lt;/span&gt;&lt;/em&gt;&lt;span lang="en-GB"&gt;&amp;nbsp;during compilation.&lt;/span&gt;[/quote]
&lt;p&gt;Sorry, I&amp;#39;m still new with the device tree concept, I thought that you were talking about the file from the boards/ directory.&lt;/p&gt;
[quote userid="100109" url="~/f/nordic-q-a/77127/loss-of-usb-connection-after-flashing-zephyr-image/319083#319083"]Do you have an RAK5010 board available? What happens if you flash the &amp;quot;hello world&amp;quot; application to the device? Does this work or do you get the same issue? I’m asking since I’m thinking it would make sense to find out if this is a software or hardware related issue.&amp;nbsp;[/quote]
&lt;p&gt;Currently, no. But this point makes sense, I&amp;#39;ll try to see whether I can test this, thanks!&lt;/p&gt;
[quote userid="100109" url="~/f/nordic-q-a/77127/loss-of-usb-connection-after-flashing-zephyr-image/319083#319083"]Have you checked &lt;em&gt;../build/zephyr/zephyr.dts&lt;/em&gt; after re-building?[/quote]
&lt;p&gt;No, I was unaware of this build artifact. I&amp;#39;ll check the docs and the zephyr.dts after re-building to see whether my modifications on the overlay were successful or not.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;Renato&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/thread/319083?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 08:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b604be2-c858-4ec1-bb2b-b506662b9daf</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello Renato,&lt;/p&gt;
[quote user="rys"]So I created the overlay that your provided, I had to adjust some parts such as removing the address uart@40002000 from the declaration as it was failing the build. I also disabled bg96, which as you said in the first comment, is related to the modem.[/quote]
&lt;p&gt;&lt;span lang="en-GB"&gt;I’m &lt;/span&gt;&lt;span lang="en-GB"&gt;very &lt;/span&gt;&lt;span lang="en-GB"&gt;sorry for being unclear, but the snippet I provided actually was from the original&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span lang="en-GB"&gt;zephyr.dts&lt;/span&gt;&lt;/em&gt;&lt;span lang="en-GB"&gt;, which is automatically generated from the devicetree in&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span lang="en-GB"&gt;../build/zephyr&lt;/span&gt;&lt;/em&gt;&lt;span lang="en-GB"&gt;&amp;nbsp;during compilation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you have an RAK5010 board available? What happens if you flash the &amp;quot;hello world&amp;quot; application to the device? Does this work or do you get the same issue? I’m asking since I’m thinking it would make sense to find out if this is a software or hardware related issue.&amp;nbsp;&lt;/p&gt;
[quote user="rys"]So I tried creating an overlay with that change and still nothing.[/quote]
&lt;p&gt;Have you checked &lt;em&gt;../build/zephyr/zephyr.dts&lt;/em&gt; after re-building? This is a good way to confirm that the modifications you have made in the overlay file actually are considered.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/thread/319046?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 01:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d43b79e0-5824-4301-837b-5f7ed3cdb15f</guid><dc:creator>rys</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;I made some tests here based on your suggestion.&lt;br /&gt;So I created the overlay that your provided, I had to adjust some parts such as removing the address uart@40002000 from the declaration as it was failing the build. I also disabled bg96, which as you said in the first comment, is related to the modem.&lt;/p&gt;
&lt;p&gt;I was then able to compile and flash the blinky sample successfully, but still coudn&amp;#39;t see the device being recognized at /dev. I tried plugging and unplugging the microusb to see if there was any event being sent to dmesg but that didn&amp;#39;t happened either. Nor could I see the LED blink.&lt;/p&gt;
&lt;p&gt;I double checked the pins from the board, the LED pin and the other ones seem to be matching but I saw a slight difference related to the declaration from TX/RX at uart1.&lt;/p&gt;
&lt;p&gt;From the dts file, uart1 declares pins tx/rx as 33/34 but on my custom board they should be set to P1.05/06 (which I believe is 0x25/0x26).&lt;/p&gt;
&lt;p&gt;So I tried creating an overlay with that change and still nothing.&lt;/p&gt;
&lt;p&gt;Do you have any other ideas on how I could proceed to debug this matter?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/thread/318886?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 06:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f8bedc3-8d84-417a-a6d5-8a3927649040</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Thanks for your feedback, Renato!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/thread/318871?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 01:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7190fc6-dfa2-4356-b50d-73295734996b</guid><dc:creator>rys</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. I&amp;#39;m using a pre-built firmware of micropython to this board. The time when I&amp;#39;m capable of seeing the entry as ACM0 is when I use that build.&lt;/p&gt;
&lt;p&gt;Regarding your suggestion, I&amp;#39;ll give it a try as soon as possible and get back in touch.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;Renato&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loss of USB connection after flashing Zephyr image</title><link>https://devzone.nordicsemi.com/thread/318767?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 11:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95bbf489-9c6e-426e-8669-10937bd57cce</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Renato,&amp;nbsp;&lt;/p&gt;
[quote user=""]======================================================&lt;br /&gt;$ ls /dev | grep ttyACM&lt;br /&gt;ttyACM0&lt;br /&gt;ttyACM1&lt;br /&gt;$ ls /dev | grep ttyUSB&lt;br /&gt;$&lt;br /&gt;======================================================[/quote]
&lt;p&gt;What application firmware was loaded to the RAK5010 before you flashed the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/zephyr/samples/hello_world/README.html#hello-world"&gt;Hello World&lt;/a&gt; example? Do you have access to the code and its configuration?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Since I do not have any experiences with this board, I have to do qualified guessing now ;-) But I hope it will help you somehow:&lt;/p&gt;
&lt;p lang="en-GB"&gt;What I can see in the &lt;em&gt;zephyr.dts&lt;/em&gt; when building the hello world application for this board, is that UART1 is used for console logging:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;chosen {
		zephyr,entropy = &amp;amp;cryptocell;
		zephyr,flash-controller = &amp;amp;flash_controller;
		zephyr,console = &amp;amp;uart1;
		zephyr,shell-uart = &amp;amp;uart1;
		zephyr,uart-mcumgr = &amp;amp;uart1;
		zephyr,bt-mon-uart = &amp;amp;uart1;
		zephyr,bt-c2h-uart = &amp;amp;uart1;
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Which UART is the USB connected to on this/your board? Otherwise, UART0 has enabled quectel_bg9x, which I guess is a modem driver? You might wanna disable it using an overlay file and see if that makes any difference?&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart0: uart@40002000 {
			reg = &amp;lt; 0x40002000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x2 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			label = &amp;quot;UART_0&amp;quot;;
			compatible = &amp;quot;nordic,nrf-uart&amp;quot;;
			current-speed = &amp;lt; 0x1c200 &amp;gt;;
			tx-pin = &amp;lt; 0x6 &amp;gt;;
			rx-pin = &amp;lt; 0x8 &amp;gt;;
			rts-pin = &amp;lt; 0x7 &amp;gt;;
			cts-pin = &amp;lt; 0xb &amp;gt;;
			quectel_bg9x: quectel_bg9x {
				compatible = &amp;quot;quectel,bg9x&amp;quot;;
				label = &amp;quot;quectel,bg9x&amp;quot;;
				mdm-power-gpios = &amp;lt; &amp;amp;gpio0 0x2 0x1 &amp;gt;;
				mdm-reset-gpios = &amp;lt; &amp;amp;gpio0 0x1c 0x1 &amp;gt;;
				mdm-dtr-gpios = &amp;lt; &amp;amp;gpio0 0x1a 0x1 &amp;gt;;
				mdm-wdisable-gpios = &amp;lt; &amp;amp;gpio0 0x1d 0x1 &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
			};
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>