<?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 Interrupt stops after some time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15270/uart0-interrupt-stops-after-some-time</link><description>Hi ,
I am using S120 ble_app_multilink_central example. I have configured UART0 in interrupt mode. I send some command and expect some response. It work very well in starting but after some time it stops responding. Although UART0 is functional but its</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jul 2016 06:21:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15270/uart0-interrupt-stops-after-some-time" /><item><title>RE: UART0 Interrupt stops after some time</title><link>https://devzone.nordicsemi.com/thread/58340?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2016 06:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b4da9f6-a372-4ca1-9d90-34cdcb721d4c</guid><dc:creator>PK</dc:creator><description>&lt;p&gt;@Hung Bui. Thank you for your help. Yes i did the same at first but didnt work. Because interrupt didnt triggered so could not set the flag.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But I solved the problem by making a small change.&lt;/strong&gt;
I replaced the following code-&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uart_buffer[uart_buf_head] =  (uint8_t)NRF_UART0-&amp;gt;RXD;
uart_buf_head++;
NRF_UART0-&amp;gt;EVENTS_RXDRDY = 0;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;By this code-&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; NRF_UART0-&amp;gt;EVENTS_RXDRDY = 0;
    uart_buffer[uart_buf_head] =  (uint8_t)NRF_UART0-&amp;gt;RXD;
    uart_buf_head++;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now my interrupt is working perfectly and it does not stuck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0 Interrupt stops after some time</title><link>https://devzone.nordicsemi.com/thread/58339?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 12:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8499ebf3-d27a-405b-a720-fbae306f5864</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@PK: Could you try to move the  simple_uart_putstring((const uint8_t*)&amp;quot;OK Done\r\n&amp;quot;);     out of the interrupt handler and instead set up a flag in the main loop and print it our when the flag is set  ? I m suspecting maybe you spend too much time in the interrupt handler that can cause an issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>