<?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>How to use the second UART?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71724/how-to-use-the-second-uart</link><description>Hi 
 
 Im trying connect two peripheral devices through UART 
 The example project I used is &amp;quot;examples/peripheral/uart&amp;quot; 
 But i trace the code, it seems that the driver layer has been bound to UART 0 
 
 
 How do I use the another UART (uart 1)? 
 it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Feb 2021 15:44:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71724/how-to-use-the-second-uart" /><item><title>RE: How to use the second UART?</title><link>https://devzone.nordicsemi.com/thread/294921?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 15:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e43d50-a612-47ac-90a2-2532751c3850</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like the app_uart implementation have only been designed with focus of supporting 1 UART instance. The instance is hard coded in top of app_uart_fifo.c as:&lt;/p&gt;
&lt;p&gt;static nrf_drv_uart_t app_uart_inst = NRF_DRV_UART_INSTANCE(APP_UART_DRIVER_INSTANCE);&lt;/p&gt;
&lt;p&gt;where&amp;nbsp;APP_UART_DRIVER_INSTANCE is controlled in sdk_config.h.&lt;/p&gt;
&lt;p&gt;I recommend to check out the libuarte driver instead:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_libuarte.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_libuarte.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alternatively you can use the UART driver directly:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_uart.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_uart.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>