<?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>Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94833/debugging-via-usb-nrf-52833-dk</link><description>(What I want to achieve is to be able to use the USB pins (D+/D-) for debugging on a PCB using a nRF52833 QFN40 MCU. I currently use UART through two regular I/O pins for debugging now, but I want to free those pins so that I can use them for additional</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Dec 2022 14:09:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94833/debugging-via-usb-nrf-52833-dk" /><item><title>RE: Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/thread/401537?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 14:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7037358-4423-4ccf-b7bb-21a63329abef</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to know you figure out the problem. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/thread/401478?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 10:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20bf4cf0-3b1c-47f2-935c-ef988aa3e510</guid><dc:creator>vidarm</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thanks for your input!&lt;/p&gt;
&lt;p&gt;I now figured out the problem. With a new development board the example application ran as it should. So there is some issue with the original board I was using.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/thread/401296?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 14:03:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d03490d3-0e34-45a7-b74f-edddbd1bce82</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since Einar is out of the office, I take this case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can have a look at this example code on how to route the&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/zephyr/services/usb/uds_cdc_acm.html#console-over-cdc-acm-uart"&gt;console to USB CDC ACM&lt;/a&gt;&lt;span&gt;. Here is the example&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/zephyr/samples/subsys/usb/console/README.html#cdc-acm-console"&gt;&lt;span&gt;Console over CDC ACM UART Sample&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/thread/401082?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 13:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3412ed83-d1d6-4251-9fe0-0b22a0846208</guid><dc:creator>vidarm</dc:creator><description>&lt;p&gt;I tried to connect for debugging on a PC running Linux now, but it didn&amp;#39;t make any difference. I didn&amp;#39;t flash the program again, that was flashed from my Windows 10 PC, but I don&amp;#39;t believe that should make any difference.&lt;/p&gt;
&lt;p&gt;I will continue testing on my Linux PC going forward, since there are known issues related to this in Windows 10.&lt;/p&gt;
&lt;p&gt;The program still ends with &amp;quot;Device suspended&amp;quot;, as shown above. Indicating dtr was never set within this while loop:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	LOG_INF(&amp;quot;Wait for DTR&amp;quot;);

	while (true) {
		uart_line_ctrl_get(dev, UART_LINE_CTRL_DTR, &amp;amp;dtr);
		if (dtr) {
			break;
		} else {
			/* Give CPU resources to low priority threads. */
			k_sleep(K_MSEC(100));
		}
	}

	LOG_INF(&amp;quot;DTR set&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t been able to understand the code well enough to understand exactly where the operation fails, but I assume it must be within the uart_line_ctrl_get() call.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/thread/400801?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 10:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79da07d0-0808-4f0e-a92e-923c5c202e6b</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;I see&lt;/p&gt;
&lt;p&gt;Are you using Windows 10?&lt;/p&gt;
&lt;p&gt;There seem to be issues with CDC ACM on Windows 10 specifically:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.segger.com/CDC"&gt;https://wiki.segger.com/CDC&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe try in another OS to confirm this is the issue you are seeing?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/thread/400627?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 13:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d51476a-6570-4733-bc47-539824cce58e</guid><dc:creator>vidarm</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not made any changes to the&amp;nbsp;&lt;span&gt;USB CDC ACM Sample Application. I am simply trying to make this work the way I have understood it should work, writing to and reading from terminal via USB, i.e. pins D+/D- or the USB port on the side of the nRF 52833 DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(And when I get this to work, the next step is to implement USB debugging in my own custom made code. In that code I currently debug via uart, and I have also redirected the uart to the pins I wanted to use. The problem though, is that I am running out of I/O pins. So therefore I want to move debug from uart to USB to make more pins available for I/O.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging via USB (nRF 52833 DK)</title><link>https://devzone.nordicsemi.com/thread/400433?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 15:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c91e341-7ab7-40c5-97c6-cf926ff0e5c0</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Have you made any changes to the sample application to reflect what pins you want the uart to use?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>