<?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>DUAL UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92336/dual-uart</link><description>Hi Nordic, 
 1. Dual Uart this code i used 
 2. Its working fine and am getting output also 
 3. But i have doute its printing from uart0 but i want from uart1 
 4. For that i tried in many ways to get output from uart1 like commentoff (uart_irq_callback_user_data_set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Sep 2022 10:53:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92336/dual-uart" /><item><title>RE: DUAL UART</title><link>https://devzone.nordicsemi.com/thread/388321?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 10:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6ae5570-db36-4eb0-8f5d-a542571dc7c1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Adding this to the .overlay file for you board should make the printk statements output the text on UART1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        zephyr,console = &amp;amp;uart1;
    };
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DUAL UART</title><link>https://devzone.nordicsemi.com/thread/388293?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 09:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba91e7d-90e0-4f42-826c-98f766f83096</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;1. Just one print statement&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. printk(&amp;quot;Hello Nordic family from uart1&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DUAL UART</title><link>https://devzone.nordicsemi.com/thread/388286?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 08:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a959d50-74af-4fdc-b808-6d793ff07b89</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Like I said, the code is already printing on UART1. If you want me to show you how to print something else on UART1, you need to tell me what you want to be printed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DUAL UART</title><link>https://devzone.nordicsemi.com/thread/388248?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 05:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e349c15-7e1f-484c-96fe-018a1272d8b8</guid><dc:creator>Tharak</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thank you for your time and effort&lt;/p&gt;
&lt;p&gt;1. If Possible could you modify the code to print from uart1&lt;/p&gt;
&lt;p&gt;2. Then i can understand code clearly&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DUAL UART</title><link>https://devzone.nordicsemi.com/thread/388175?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 14:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:913d5856-bae2-43f8-ad60-297070c67ac8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if I understand what you want. Do you want the printk() statements in the code output on UART1?&lt;/p&gt;
&lt;p&gt;The code already works by outputting text on both UART0 and UART1. The strings input on UART0 will be output on UART1, and text input on UART1 will be output on UART0. If you want to output other data to UART1, you can use the function&amp;nbsp;print_uart(uart_dev1, rx_buf1); as I have done in the code, to print the context of rx_buf1 on UART1.&lt;/p&gt;
&lt;p&gt;The printk statements in code depends on the devicetree configs in the project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>