<?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 two serial uartes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43966/how-to-use-two-serial-uartes</link><description>Hi all, 
 Please refer to the SDK version : nRF5_SDK_15.2.0_9412b96. 
 We need to use two uarts simultaneously for module &amp;amp; device respectively. 
 For example : 
 UARTE0 : Device (Agreed protocol - RX/TX only) 
 UARTE1 : Module (AT command - RX/TX only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Feb 2019 11:49:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43966/how-to-use-two-serial-uartes" /><item><title>RE: How to use two serial uartes</title><link>https://devzone.nordicsemi.com/thread/172995?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 11:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a2e7535-8bbd-47b6-8b6d-8f7c1a2b2b0e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is no other way to preventing the errors than to stay clear of the conditions, mentioned in section 6.33.10.4 of the PS, that cause the errors. You should not make any changes to the source code.&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/23834/recover-from-nrf_uarte_event_error-when-uart-rx-pin-pulled-low/93773#93773"&gt;This thread&lt;/a&gt; describes how to clear errors and restarting the UART driver.&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: How to use two serial uartes</title><link>https://devzone.nordicsemi.com/thread/172904?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 00:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7439def1-3bd6-48f0-b532-b3a4dc1642af</guid><dc:creator>jsmoon</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6457.error.png" /&gt;&lt;/p&gt;
&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;We get above values when NRF_UARTE_EVENT_ERROR&amp;nbsp; event occurs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On the other hand, can we avoid getting NRF_UARTE_EVENT_ERROR&amp;nbsp; event?&lt;/p&gt;
&lt;p&gt;Eventhough, the data is rubbish data, we want to get and manage it&amp;nbsp;inside our function.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t want to get NRF_UARTE_EVENT_ERROR&amp;nbsp;at all time. Is it possible by modifying SDKs source code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please share us your comment&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use two serial uartes</title><link>https://devzone.nordicsemi.com/thread/172720?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 10:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a708a8ef-381d-46e7-9ede-fcc7f16a9a9e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42883/current-consumption-when-using-timer-and-scheduler-alongwith-nrf_pwr_mgmt_run/167391#167391"&gt;This case&lt;/a&gt; explains how to reinitialize your UARTE. Are you able to identify what NRF_UARTE_EVENT_ERROR you are getting?&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: How to use two serial uartes</title><link>https://devzone.nordicsemi.com/thread/172671?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 04:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e88a43c3-33cd-4b9c-a265-0411fd673288</guid><dc:creator>jsmoon</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;We can use TWO UARTEs by setting nrf_serial_read() timeout to 0.&lt;/p&gt;
&lt;p&gt;However, at some point we receive NRF_UARTE_EVENT_ERROR and can&amp;#39;t&amp;nbsp; resotre UARTEs until reboot.&lt;/p&gt;
&lt;p&gt;Please share us how can we&amp;nbsp;re-init or restore&amp;nbsp;URATEs .&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use two serial uartes</title><link>https://devzone.nordicsemi.com/thread/172319?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 14:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a82e9f-8c05-4db4-900d-207359d5304e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14#post-id-168360"&gt;this post&lt;/a&gt;, as there is a modified main.c file there that may help you, as well as a long discussion on using 2 UARTEs. If you don&amp;#39;t find any help there you can try simply setting the timeout in nrf_serial_read() to 0 as described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38589/nrf52840-uart0-and-uart1-both-used-at-the-same-time/149107#149107"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>