<?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>USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101453/usb-cdc_acm-questions</link><description>Hello 
 I have some questions about USB CDC ACM support under Zephyr 
 I need the shell on one CDC ACM device and to print print large chunks of data to the console ( &amp;gt; 1024 bytes ) to another one 
 I am using cdc_acm_composite sample found in zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jul 2023 13:23:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101453/usb-cdc_acm-questions" /><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/435999?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 13:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a8bd91-f4f7-4643-83f1-2aadbb4ed594</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;That did it ! No more log messages in the shell console. Thank you for help!&lt;/p&gt;
&lt;p&gt;Andy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/435931?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 10:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78d32846-8c9c-4461-967c-796a43ddba09</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Try to add&amp;nbsp;CONFIG_SHELL_LOG_BACKEND=n&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/435919?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 09:53:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c1d481-961b-476c-9046-103c07af2f72</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It&amp;#39;s not that much to say really, if I open the cdc acm composite example unmodifed and use:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_BACKEND_UART=n&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=y&lt;/p&gt;
&lt;p&gt;Then it prints to RTT, and similiar the following to UART:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_BACKEND_UART=y&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=n&lt;/p&gt;
&lt;p&gt;Edit: But when I enable Shell then I can see the log pops up. Let me look into it.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/435809?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 20:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419ac5ee-4b18-469f-9983-b7470b3b6aaf</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Any updates? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/434769?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 15:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f82d1153-9a61-4afa-936c-df9cacda2e66</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;No luck with config settings. The log output still appears in the shell console&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/434739?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 13:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d946ca7-636d-4e54-ae14-fcc5460abc79</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;I will test the config settings and let you know.&lt;/p&gt;
&lt;p&gt;What about that comment in the uart_fifo_fill() function description?&lt;/p&gt;
&lt;p&gt;It says that the function should only be used from an ISR. I&amp;#39;m using it from the main application thread&amp;nbsp; on an nRF52840 DK and don&amp;#39;t see any ill effects. Simulated sending large data chunks and it seems to be working normally. Anything I&amp;#39;m overlooking here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/434494?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 14:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43818a1a-556f-447d-b9fd-ee3ff797cc59</guid><dc:creator>Kenneth</dc:creator><description>[quote user="AndyM"]That did not help. I still see RTT log messages in the shell&amp;nbsp; console[/quote]
&lt;p&gt;I guess I should try this myself, but maybe you can try something like:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_BACKEND_UART=n&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=y&lt;br /&gt;CONFIG_USE_SEGGER_RTT=y&lt;br /&gt;CONFIG_UART_CONSOLE=n&lt;br /&gt;CONFIG_RTT_CONSOLE=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="AndyM"]&lt;p&gt;text&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; text&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;text&lt;/p&gt;[/quote]
&lt;p&gt;Typicallly this is controlled by the terminal window, see New-line:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1688480576153v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/434479?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 13:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e764b915-45f3-47ce-be93-03906f32ab72</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;That did not help. I still see RTT log messages in the shell&amp;nbsp; console&lt;/p&gt;
&lt;p&gt;Could you please provide answers to the other questions - about using uart_fifo_fill() and each new line printed at an offset like so&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;text&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; text&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;text&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;Did more testing&lt;/p&gt;
&lt;p&gt;Apparently &amp;quot;\n&amp;quot; character at the end of the string causes the above behavior&lt;/p&gt;
&lt;p&gt;&amp;quot;\r&amp;quot; character causes the current line to be overwritten so only the last line is printed. The cursor stays in the leftmost position&lt;/p&gt;
&lt;p&gt;&amp;quot;\r\n&amp;quot; prints the lines correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m on Windows using putty&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB cdc_acm questions</title><link>https://devzone.nordicsemi.com/thread/434378?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f560113b-79d8-43ff-a787-2f6a3f2bac5e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Try:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_BACKEND_UART=n&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=y&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>