<?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>nRF9160 RX interrupt not triggering after UART disabled and enabled again</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51841/nrf9160-rx-interrupt-not-triggering-after-uart-disabled-and-enabled-again</link><description>Hi, 
 I am using ncs 1.0.0 in nRF9160. 
 I have enabled UART 2 interrupt during initialization of the uart as below and it works fine. 
 
 To reduce the power consumption i need to disable the UART2 when it is not needed. 
 I have disabled the UART2 as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2019 13:38:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51841/nrf9160-rx-interrupt-not-triggering-after-uart-disabled-and-enabled-again" /><item><title>RE: nRF9160 RX interrupt not triggering after UART disabled and enabled again</title><link>https://devzone.nordicsemi.com/thread/213680?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 13:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d511a12f-b170-4b0f-bbb6-15859211f262</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Smitesh,&lt;br /&gt;I am very sorry for the delay, but I would assume that you have progressed from this issue (?)&lt;/p&gt;
&lt;p&gt;If not please share a code snippet on how you implemented this and some serial log output would be nice.&lt;/p&gt;
&lt;p&gt;I would also recommend enabling Debug logs in your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 RX interrupt not triggering after UART disabled and enabled again</title><link>https://devzone.nordicsemi.com/thread/208789?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 05:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34aecf30-c834-4560-97f5-b8e2fc21b5f4</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The method suggested by you creates other random issues.&lt;/p&gt;
&lt;p&gt;Like MQTT connection failure and Hard fault.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 RX interrupt not triggering after UART disabled and enabled again</title><link>https://devzone.nordicsemi.com/thread/208669?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 12:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8465bfcd-b7f7-4c8a-b68f-443e5efe2980</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Smitesh,&lt;br /&gt;Please try to&lt;span&gt;&amp;nbsp;stop via&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/uarte.html?cp=2_0_0_5_18_9#register.TASKS_STOPRX"&gt;TASKS_STOPRX&lt;/a&gt;&lt;span&gt;&amp;nbsp;and then wait until you get&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/uarte.html?cp=2_0_0_5_18_9#register.EVENTS_RXTO"&gt;EVENTS_RXTO&lt;/a&gt;&lt;span&gt;, and then you can disable UART via the &lt;strong&gt;function you did in the first post&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And when you are going to enable UART again you send:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_UARTE2_NS-&amp;gt;TASKS_STARTRX = 1;&lt;br /&gt;NRF_UARTE2_NS-&amp;gt;TASKS_STARTTX = 1;&lt;br /&gt;and then&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_uarte_enable(NRF_UARTE2);&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 RX interrupt not triggering after UART disabled and enabled again</title><link>https://devzone.nordicsemi.com/thread/208611?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 09:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:021e6174-4292-403a-b3ab-f64fae6ca2b0</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I disabled the UART as below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_UARTE2_NS-&amp;gt;TASKS_STOPRX  = 1;
NRF_UARTE2_NS-&amp;gt;TASKS_STOPTX = 1;
while(NRF_UARTE2_NS-&amp;gt;EVENTS_RXTO==0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I enabled it like below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_UARTE2_NS-&amp;gt;TASKS_STARTRX = 1;
NRF_UARTE2_NS-&amp;gt;TASKS_STARTTX = 1;

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But i observed that current consumption on &amp;quot;power profiler&amp;quot; is around 500 uA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When i was turning off the UART 2 using &amp;quot;nrf_uarte_disable(NRF_UARTE2)&amp;quot; i was getting 7 uA current.&lt;/p&gt;
&lt;p&gt;am i doing turning off UART 2 correctly ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 RX interrupt not triggering after UART disabled and enabled again</title><link>https://devzone.nordicsemi.com/thread/208497?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 14:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10264b50-9d0b-465f-976b-85dd736d421d</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Smitesh,&lt;/p&gt;
&lt;p&gt;The implementation of this functionality in&amp;nbsp;&lt;em&gt;uart_nrfx_uarte.c&lt;/em&gt;&amp;nbsp;is not correct.&lt;br /&gt;You have to stop via&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/uarte.html?cp=2_0_0_5_18_9#register.TASKS_STOPRX"&gt;TASKS_STOPRX&lt;/a&gt;&amp;nbsp;and then wait until you get&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/uarte.html?cp=2_0_0_5_18_9#register.EVENTS_RXTO"&gt;EVENTS_RXTO&lt;/a&gt;, and then you can disable.&lt;/p&gt;
&lt;p&gt;Please look at &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fuarte.html&amp;amp;cp=2_0_0_5_18_2&amp;amp;anchor=concept_uzb_p2m_wr" rel="noopener noreferrer" target="_blank"&gt;this documentation for more details.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/src/main.c#L211" rel="noopener noreferrer" target="_blank"&gt;here is a snippet on how to disable UART RX&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>