<?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>RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63990/rf52840-two-instances-of-uart-uarte</link><description>Hi, 
 
 I have just started using the Nordic SDK (nRF5_SDK_15.2.0_9412b96) and am developing a low power application for a custom PCB using the rf52840. 
 I am developing using Segger on the PCA10056 development board initially. 
 Similar support queries</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jul 2020 08:02:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63990/rf52840-two-instances-of-uart-uarte" /><item><title>RE: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/261893?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 08:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d0da1c8-98cc-4c06-ada7-789c9a0d3a00</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;As Simon said, you can use the already included UART driver to configure the second UART instance. Just remember to enable &amp;#39;UART1_ENABLED&amp;#39; in sdk_config.h first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/261279?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 01:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9aa750d-d784-4634-9eb0-ed15ecd22bad</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Currently, due to summer vacation, we are low on staff, and&amp;nbsp;you may experience delayed answers.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will just copy in&amp;nbsp;some answers I found&amp;nbsp;in some&amp;nbsp;other tickets initially. Tomorrow/friday I will take a deeper look into your questions and try to give a more comprehensive answer&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;app_uart does not support two UARTs. UARTE1 should be accessed through the driver while UARTE0 may be accessed through app_uart or the driver.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;&lt;span&gt;I think it&amp;#39;s easier to use the UART driver directly instead of using the Serial library for the second UART instance. Anyway, please try to build and debug the &amp;quot;Debug&amp;quot; target, it will give you a more verbose error message.&lt;/span&gt;&amp;quot; &lt;/em&gt;(this was from a case where a customer was trying to do the same as you).&lt;/p&gt;
&lt;p&gt;Take a look at the UART driver in the documentation:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.0%2Fhardware_driver_uart.html&amp;amp;cp=7_1_2_0_19"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.0%2Fhardware_driver_uart.html&amp;amp;cp=7_1_2_0_19&lt;/a&gt;&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: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/260972?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 10:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b75a20a-6fef-451f-b73b-412050619621</guid><dc:creator>Dermot Murphy</dc:creator><description>&lt;p&gt;Sorry I have no idea what the first UART is connected to in the BLE UART example.&lt;/p&gt;
&lt;p&gt;I would refer you to the Nordic example quoted in the question.&lt;/p&gt;
&lt;p&gt;To me, it appears to be used for transmitting debug data as a call is made in the example code to&amp;nbsp;app_uart_put from the&amp;nbsp;nus_data_handler handler which is handling the data received over BLE.&amp;nbsp; As a guess, I would say it is going out via the USB connection to the Segger Terminal.&lt;/p&gt;
&lt;p&gt;Either way, I am not interested in the BLE usage of the UART it has initialised.&lt;/p&gt;
&lt;p&gt;I only am interested in adding a second UART/UARTE to support the sensor on my PCB.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Dermot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/260969?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 10:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52b1568d-d27b-42bd-a39f-9a4d6dac27b8</guid><dc:creator>awneil</dc:creator><description>[quote userid="92093" url="~/f/nordic-q-a/63990/rf52840-two-instances-of-uart-uarte/260967"]the first UART is connected to the BLE[/quote]
&lt;p&gt;This is the bit that doesn&amp;#39;t make sense:&lt;/p&gt;
&lt;p&gt;The BLE is entirely internal to the SoC - so what is the first UART actually connecting to outside the SoC ?&lt;/p&gt;
&lt;p&gt;In the examples, it is simply used for demo purposes to connect to a terminal on the developer&amp;#39;s PC.&lt;/p&gt;
&lt;p&gt;It seems that it may be unnecessary in your application.&lt;/p&gt;
&lt;p&gt;Again, a diagram may help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/260967?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 10:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0af11b1a-cbd1-4e25-ba1c-739dd4c22efa</guid><dc:creator>Dermot Murphy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I wish to add a second UART/UARTE to communicate with a device on my PCB.&lt;/p&gt;
&lt;p&gt;To answer your question, the first UART is connected to the BLE&amp;nbsp;(refer to the example quoted), and I wish this to remain unchanged.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Dermot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/260965?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 10:29:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:980af0fb-9518-4b45-a961-a9ef2c599dce</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So what will be connected to the first UART on your PCB ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;A diagram might help ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/260964?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 10:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a45380a-86e3-47e3-87bf-88b148ecc420</guid><dc:creator>Dermot Murphy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;What I mean is that the BLE example code already uses one UART to provide serial comms over BLE.&amp;nbsp; I wish this to remain unchanged - that is the first instance of the UART initialised in the example, will remain unchanged in that it is still attached to the BLE code in the example.&lt;/p&gt;
&lt;p&gt;I basically want the BLE example unchanged, and just add a second instance of serial comms (UART/UARTE) which I want to use with a sensor on my PCB.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Dermot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF52840 Two instances of UART/UARTE</title><link>https://devzone.nordicsemi.com/thread/260960?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 10:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b7cb404-5a59-4b58-bd4c-da05f3137bf4</guid><dc:creator>awneil</dc:creator><description>[quote userid="92093" url="~/f/nordic-q-a/63990/rf52840-two-instances-of-uart-uarte"]The first instance will remain attached to the BLE[/quote]
&lt;p&gt;Not sure what you mean by that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>