<?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>Zephyr console configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75902/zephyr-console-configuration</link><description>Dear Nordic, 
 how to set UART/USB console output to be non-blocking? We use printk() to output some debug info to USB console. When the USB isn&amp;#39;t connected, the program stalls. How to configure console output to be non-blocking?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Jun 2021 06:00:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75902/zephyr-console-configuration" /><item><title>RE: Zephyr console configuration</title><link>https://devzone.nordicsemi.com/thread/314594?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 06:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5846f661-cf95-4a40-b3e1-7895cd9411d6</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks, we&amp;#39;ll re-check this issue on our side.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr console configuration</title><link>https://devzone.nordicsemi.com/thread/314565?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 20:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d683f5ec-5fb8-4316-9c4c-85af5fbde881</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce your problem. I modified the sample zephyr/samples/subsys/usb/console by adding a blinking LED. I got the USB log output in a terminal on my computer while the LED was blinking. Then I disconnected the USB, but the program didn&amp;#39;t stall, the LED continued blinking. However, for some reason the delay between the LED&amp;nbsp;toggling&amp;nbsp;increased after disconnecting the USB.&lt;/p&gt;
&lt;p&gt;Can you test the sample and see if you get the same result:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/usb_5F00_console.zip"&gt;devzone.nordicsemi.com/.../usb_5F00_console.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr console configuration</title><link>https://devzone.nordicsemi.com/thread/313735?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 16:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48bfd87d-94e8-4ff0-88ad-17d152bfb286</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Dear Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No, we use this on our project target board with USB CDC ACM interface (two virtual ports defined - CDC_ACM_0 for console and CDC_ACM_1 for shell and log).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;According to the picture given we use port &amp;quot;2&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr console configuration</title><link>https://devzone.nordicsemi.com/thread/313141?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 13:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c2ddf53-6178-4b30-a3d2-cf7ede1a69d4</guid><dc:creator>Simon</dc:creator><description>[quote user=""]When the USB isn&amp;#39;t connected[/quote]
&lt;p&gt;What USB port are you talking about?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nRF52840-DK-_2800_1_2900_.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I assume it&amp;#39;s number 1, since you&amp;#39;re talking about printk (it sends the data to UART0-&amp;gt;interface MCU-&amp;gt;USB-&amp;gt;Computer). However, if you disconnect that, the DK won&amp;#39;t be powered anymore. Are you powering it in another way? Could you explain your setup in more detail, and how to reproduce it?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>