<?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>Use Shell over UART and UART ASYNC API on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92325/use-shell-over-uart-and-uart-async-api-on-nrf52840</link><description>(I was asked to create a new post for this specific query. The original post where this investigation started is here: Async UART and shell module in Zephyr on nRF52480 ) 
 Is it possible to enable async UART support and the shell module in the same </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Sep 2022 03:15:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92325/use-shell-over-uart-and-uart-async-api-on-nrf52840" /><item><title>RE: Use Shell over UART and UART ASYNC API on nRF52840</title><link>https://devzone.nordicsemi.com/thread/388238?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 03:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f0bd670-17fe-4872-9794-7ae43fa05e86</guid><dc:creator>Stew</dc:creator><description>&lt;p&gt;Kenneth,&lt;/p&gt;
&lt;p&gt;Thank you - your recommendations were very helpful.&amp;nbsp;&amp;nbsp;I was able to get them co-existing with one modification.&lt;/p&gt;
&lt;p&gt;My .conf file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SHELL=y
CONFIG_UART_0_INTERRUPT_DRIVEN=y
CONFIG_UART_0_ASYNC=n # &amp;lt;===================================

CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n # &amp;lt;===================================&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If I didn&amp;#39;t add the 2 additional lines above (the two &amp;quot;...=n&amp;quot; lines), I got this message:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: UART_1_ASYNC (defined at drivers/serial/Kconfig.nrfx:161) was assigned the value &amp;#39;y&amp;#39; but
got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: (!UART_1_INTERRUPT_DRIVEN) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_1_ASYNC and/or look up UART_1_ASYNC in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With the above .conf file alterations, my larger project (not just the example code) is able to use the Shell on uart0 and the UART ASYNC API on uart1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Shell over UART and UART ASYNC API on nRF52840</title><link>https://devzone.nordicsemi.com/thread/388136?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 12:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d43a14bd-361c-45bc-9ec3-7ae47067b949</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can enable both api&amp;#39;s but then you need to explicitly specify which instance is using what (otherwise it relies on the defaults). So something like this should be ok:&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=y&lt;br /&gt;CONFIG_UART_ASYNC_API=y&lt;br /&gt;CONFIG_SHELL=y&lt;/p&gt;
&lt;p&gt;CONFIG_UART_0_INTERRUPT_DRIVEN=y # Instance used by shell&lt;/p&gt;
&lt;p&gt;CONFIG_UART_1_ASYNC=y #instance for other purposes supporting async api&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Shell over UART and UART ASYNC API on nRF52840</title><link>https://devzone.nordicsemi.com/thread/388063?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 08:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d770ad1c-26ba-4679-b202-75aade758070</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have created an internal for the developers to take a look.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>