<?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>Enabling UART0 Async while Shell over USB is enabled caused system crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114746/enabling-uart0-async-while-shell-over-usb-is-enabled-caused-system-crash</link><description>Hi there, I am trying to use shell with the USB and logging with RTT. Additionally, UART0 async is used to communicate with sensors. Here a snapshot of the proj,config: 
 I am getting these message errors on the RTT logging: 
 [00:00:00.000,640] &amp;lt;err</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Sep 2024 01:39:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114746/enabling-uart0-async-while-shell-over-usb-is-enabled-caused-system-crash" /><item><title>RE: Enabling UART0 Async while Shell over USB is enabled caused system crash</title><link>https://devzone.nordicsemi.com/thread/502831?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 01:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7568a247-a4a4-4cf2-8129-993e0916ff27</guid><dc:creator>cgi27</dc:creator><description>&lt;p&gt;I managed to resolve the problem by adding&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL_BACKEND_SERIAL_API_INTERRUPT_DRIVEN&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling UART0 Async while Shell over USB is enabled caused system crash</title><link>https://devzone.nordicsemi.com/thread/502827?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 22:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14e924e5-d6cf-4d7d-8152-f2bf279fb9ab</guid><dc:creator>cgi27</dc:creator><description>&lt;p&gt;Yes it&amp;#39;s being enabled. I don&amp;#39;t have any issue running CDC ACM along with UART0 Async. The problem is when I start using the shell. RTT seems to be working when I set CONFIG_SHELL_BACKEND_SERIAL=n but receive crash log as posted earlier when&amp;nbsp;&lt;span&gt;CONFIG_SHELL_BACKEND_SERIAL=y&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling UART0 Async while Shell over USB is enabled caused system crash</title><link>https://devzone.nordicsemi.com/thread/502778?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 12:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e32123a-d991-477b-87da-9225df081f17</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Could you check your final configuraiton with CONFIG_UART_INTERRUPT_DRIVEN?&amp;quot;CONFIG_UART_INTERRUPT_DRIVEN must be set for CDC ACM driver&amp;quot; according to the source codes:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/subsys/usb/device/class/cdc_acm.c#L52"&gt;sdk-zephyr/subsys/usb/device/class/cdc_acm.c at main &amp;middot; nrfconnect/sdk-zephyr (github.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I found the following discussion with a similar usage, it seems no mature solution now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106129/cannot-get-async-uart0-to-work-with-usb-cdc"&gt;(+) Cannot get Async UART0 to work with USB CDC - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling UART0 Async while Shell over USB is enabled caused system crash</title><link>https://devzone.nordicsemi.com/thread/502660?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 20:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:115856c4-2313-4403-ae92-4c9f1f6c8ec1</guid><dc:creator>cgi27</dc:creator><description>&lt;p&gt;Yes with lines 30 onwards being commented out&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling UART0 Async while Shell over USB is enabled caused system crash</title><link>https://devzone.nordicsemi.com/thread/502579?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 09:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:383e5883-9c8a-4fac-9f60-c6f9425768d4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you manage to make your device work as USB CDC Shell/console without error first?&lt;/p&gt;
&lt;p&gt;You can refer to&amp;nbsp;a previous discussion:&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/68085/use-nrfconnect-sdk-with-52840-dongle-usb-cdc-shell-console"&gt;(+) use NrfConnect SDK with 52840 dongle USB CDC Shell/console - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>