<?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>nRF52840 UART1 and log config?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68896/nrf52840-uart1-and-log-config</link><description>How can configure NRF_LOG_UART to use UART0 or UART1 for nRF52840? I cant see any configuration which uart NRF_LOG_BACKEND_UART will use 
 As per spec nRF52840 should have 2 UARTs with EasyDMA, but in sdk_config.h&amp;gt; nRF_Drivers&amp;gt;UART_ENABLED only UART0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Dec 2020 11:56:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68896/nrf52840-uart1-and-log-config" /><item><title>RE: nRF52840 UART1 and log config?</title><link>https://devzone.nordicsemi.com/thread/282642?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 11:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df3ddd26-4f45-459b-a9bd-2164d9cdaeec</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;By default, the UART backend uses the UARTE0 instance. No, we do not have any example projects using both of the UARTE instances, as this would be specific to the nRF52840 and nRF52833 chips we have chosen not to focus on this. If you use the UARTE1 instance for your application, and leave the UARTE0 as is for backend logging it should be pretty straight-forward.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 UART1 and log config?</title><link>https://devzone.nordicsemi.com/thread/282529?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 17:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af857794-3e1e-4c10-ac48-a340c490378f</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for clarification - I wouldn&amp;#39;t pay attention that uart is 1 but uarte-s are two. What about nrf log with uart backend - which uart or urate does it use?&lt;/p&gt;
&lt;p&gt;Are UART0 and UARTE0 two separate peripherals or one peripheral that works in 2 modes? If are 2 peripherals can they both be used in the same code (with different&amp;nbsp; pins and baudrates)?&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 UART1 and log config?</title><link>https://devzone.nordicsemi.com/thread/282486?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 14:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faf262f2-96a7-4553-9462-4fa4ffe0c414</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;First, when using SDK v17.0.0 we strongly recommend moving to &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/index.html"&gt;SDK v17.0.2&lt;/a&gt; as it includes the latest MDK with a bug fixes that properly handles errata on future devices with unknown HW ID.&lt;/p&gt;
&lt;p&gt;As for your UART question. Please note that the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fuart.html"&gt;UART peripheral&lt;/a&gt; only has one available instance (UART0). The &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fuarte.html"&gt;UARTE peripheral&lt;/a&gt; however, has two available instances; UARTE0 and UARTE1.&lt;/p&gt;
&lt;p&gt;Please note that the&amp;nbsp;&lt;em&gt;app_uart&amp;nbsp;&lt;/em&gt;examples do not support two UARTs. UARTE1 should only be accessed through the driver while UARTE0 may be accessed through app_uart or the driver. You can use the already included UART driver to configure the second UART instance, you just have to remember to enable &amp;quot;UARTE1_ENABLED&amp;quot; in sdk_config.h first.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>