<?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>UART resieve interrupt trouble.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71462/uart-resieve-interrupt-trouble</link><description>Hello. I&amp;#39;m currently developing a software for nRF52832AA device. It needs to communicate with external device via UART. It resieves text message and takes some data from it. I used standart functions from libraries to obtain data from FIFO. So the question</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Feb 2021 11:30:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71462/uart-resieve-interrupt-trouble" /><item><title>RE: UART resieve interrupt trouble.</title><link>https://devzone.nordicsemi.com/thread/293530?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 11:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce68a77b-e47b-4254-94d2-80f9f7691b04</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I suggest you study the SDK\examples\ble_peripheral\ble_app_uart example, and how it uses the uart_event_handle() to receive bytes from the UART using interrupts.&lt;/p&gt;
&lt;p&gt;Basically, it is the same as your current&amp;nbsp;uart_error_handle(), except that it also has an event for new data,&amp;nbsp;APP_UART_DATA_READY.&lt;/p&gt;
&lt;p&gt;In your case, it is already set up, but the event handler doesn&amp;#39;t check for this event. The reason it also works to use&amp;nbsp;app_uart_get() as a blocking call is that it returns NRF_ERROR_NOT_FOUND until it actually receives a byte.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>