<?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>UART0-&amp;gt;ERROSRC value 0x09</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43627/uart0--errosrc-value-0x09</link><description>Hardware:Two nrf52840 DK Software: SDK15.2 
 We have 2 development boards acting as a master and slave communicating over UART. We are using the serial library for this application. When we pressed the reset button on the slave end, we get a &amp;quot;NRF_SERIAL_EVENT_DRV_ERR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Feb 2019 12:33:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43627/uart0--errosrc-value-0x09" /><item><title>RE: UART0-&gt;ERROSRC value 0x09</title><link>https://devzone.nordicsemi.com/thread/170866?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 12:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bbe7f9e-6f43-4a1c-bf66-68d719e20897</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The examples don&amp;#39;t just &amp;quot;stop receiving&amp;quot; - they do a Fatal Error &amp;amp; crash!&lt;/p&gt;
&lt;p&gt;It&amp;#39;s easy enough to just handle the case of a UART error appropriately; eg, ignore the byte.&lt;/p&gt;
&lt;p&gt;I did post an example of doing that in one of the past threads on this - but can&amp;#39;t now find it.&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/43627/uart0--errosrc-value-0x09/170864"]you will&amp;nbsp;avoid the error&amp;nbsp;by adding an pull-up resistor[/quote]
&lt;p&gt;Maybe - but that just masks the symptom.&lt;/p&gt;
&lt;p&gt;Your code really needs to properly handle UART errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0-&gt;ERROSRC value 0x09</title><link>https://devzone.nordicsemi.com/thread/170864?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 12:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54bed71f-379a-44c5-ae73-4264e233d05a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Unfortunately the examples and libraries have been setup to stop receiving data on error, so you would need to reinit() for instance the serial driver on error. Alternatively in this case I suspect you will&amp;nbsp;avoid the error&amp;nbsp;by adding an pull-up resistor on the UART_RX input pins on both DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0-&gt;ERROSRC value 0x09</title><link>https://devzone.nordicsemi.com/thread/170723?ContentTypeID=1</link><pubDate>Tue, 12 Feb 2019 18:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ec8a9c-8c71-4917-a91a-5a5b98a79eda</guid><dc:creator>awneil</dc:creator><description>[quote userid="25598" url="~/f/nordic-q-a/43627/uart0--errosrc-value-0x09"]When we pressed the reset button on the slave end, we get a &amp;quot;NRF_SERIAL_EVENT_DRV_ERR&amp;quot; event [/quote]
&lt;p&gt;It is very common - to the extent that applications should&amp;nbsp;expect it - to get a &amp;quot;junk&amp;quot; character or two at startup. Often with framing and/or parity errors.&lt;/p&gt;
&lt;p&gt;This is probably what you&amp;#39;re seeing.&lt;/p&gt;
&lt;p&gt;The Nordic examples do not handle this sensibly:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41480/multiperipheral-nus-crashes/161714#161714"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41480/multiperipheral-nus-crashes/161714#161714&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>