<?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>NRF52 clear UART FIFO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13007/nrf52-clear-uart-fifo</link><description>Hi, 
 I am using nrf52-DK (First Version in the moment) and need to test UART interface.
I use the example from the blue-nus example from the SDK which is working fine. I have only some problems by correct usage of FIFO buffer which is overflowing all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Apr 2016 17:29:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13007/nrf52-clear-uart-fifo" /><item><title>RE: NRF52 clear UART FIFO</title><link>https://devzone.nordicsemi.com/thread/49577?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2016 17:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:853ff4f7-1c8e-406d-844d-2570c8b9c8ab</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;The FIFO implementation documentation is available in the &amp;quot;SDK common libraries&amp;quot; section, see &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fgroup__app__fifo.html&amp;amp;cp=4_0_0_6_8_5"&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can use the &lt;code&gt;app_fifo_flush&lt;/code&gt; function to equals the FIFO read and write pointers and &amp;quot;invalidate&amp;quot; the data stored in the FIFO.&lt;/p&gt;
&lt;p&gt;To avoid FIFO overflow and to not lost bytes sent over UART, you could use Hardware Flow Control to stop the UART stream until you have processed the data available in the FIFO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>