<?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>libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83051/libuarte-rx-start-after-stop</link><description>After executing nrf_libuarte_drv_rx_stop(), nrf_libuarte_drv_rx_start() will produce an error. 
 
 In nrf_libuarte_drv_rx_start() t his line in nrf_libuarte_drv.c (Line 625 in SDK 17.1.0) tries to enable the timer but fails: 
 
 What would be the preferred</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Mar 2022 15:21:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83051/libuarte-rx-start-after-stop" /><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/357477?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 15:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca29819-e2cb-4046-ba7c-81b5b55f8ee6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gnf,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, I haven&amp;#39;t got any update on this issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/357410?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 13:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ce972c-0f79-40a8-bb20-e6fc6df06633</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;, any news regarding this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/347446?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 16:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a3c934f-2d25-48d2-a7a2-24afbf99107e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gnf,&amp;nbsp;&lt;br /&gt;You are right. After compile with Debug version I can see the error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will check with the team but for me it seems to be a bug in the libuarte code.&amp;nbsp;&lt;br /&gt;I think&amp;nbsp;&amp;nbsp; &amp;nbsp;nrfx_timer_disable(&amp;amp;p_libuarte-&amp;gt;timer); need to be added inside&amp;nbsp;nrf_libuarte_drv_rx_stop().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After I added that it seems to works fine.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will keep you updated when I get the confirmation from the team.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/347304?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 07:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdb0dd45-1539-4f4d-9be0-5248fcaf16b8</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;I use full assert (DEBUG and DEBUG_NRF). The error is an assertion error in nrfx_timer.c:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1641973954596v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/347235?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 15:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f42a8d-053f-4b0c-bff7-73cc56b78482</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please let me know which exact error you received.&amp;nbsp;&lt;br /&gt;In my test here I don&amp;#39;t see any error (error_code = 0):&amp;nbsp;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1276x544/__key/communityserver-discussions-components-files/4/3073.pastedimage1641915984897v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/347201?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0decb008-6627-4731-8f85-ecf589522e60</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;I tried creating a minimal working example of the error. Please see the attached zip file below. I used the libuarte example in SDK 17.1.0&lt;/p&gt;
&lt;p&gt;The error occurs the second time&amp;nbsp;nrf_libuarte_drv_rx_start() is executed (line 206 in main.c in the zip file):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  err_code = nrf_libuarte_drv_rx_start(&amp;amp;libuarte, rx_buffer, sizeof(rx_buffer), 0);
  APP_ERROR_CHECK(err_code);
  
  nrf_libuarte_drv_rx_stop(&amp;amp;libuarte);

// The error is on the following line:
  err_code = nrf_libuarte_drv_rx_start(&amp;amp;libuarte, rx_buffer, sizeof(rx_buffer), 0);
  APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/libuarte_5F00_start_5F00_stop_5F00_8a31e13a09.zip"&gt;devzone.nordicsemi.com/.../libuarte_5F00_start_5F00_stop_5F00_8a31e13a09.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/345074?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 08:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b19886d-767f-4430-bc29-9b7e5f4160db</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gnf,&amp;nbsp;&lt;br /&gt;Then it should work. Could you let me know which exact error you have ?&amp;nbsp;&lt;br /&gt;Can you send the code you used ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/344995?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 18:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ae9e0a-f434-4863-8446-d27f30d9a144</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;Ok. I am using nrf_libuarte, not nrf_libuarte_async. Should I use init/uninit instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: libuarte rx start after stop</title><link>https://devzone.nordicsemi.com/thread/344960?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 13:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a852f35-66dd-4f76-b95d-cff30a83c09f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gnf,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you use&amp;nbsp;nrf_libuarte_async, I would suggest to wait until the RX timeout occurs before you put the chip to sleep.&amp;nbsp;&lt;br /&gt;Otherwise you may need to call&amp;nbsp;nrf_libuarte_async_uninit() to stop any timer and sleep. Next time when you want to receive you need to init the module again.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>