<?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>UARTE crash when init and uninit continoulsy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90550/uarte-crash-when-init-and-uninit-continoulsy</link><description>Hi, I&amp;#39;m developing an project that using 2 UARTE. My code flow is 1. when timer handler has expried ( set timer_expired_flag = true) (using app_timer) 2. Enable uarte1 to send data to GPS when process complete disable Uarte1 and repeats with Uarte2 to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2022 08:49:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90550/uarte-crash-when-init-and-uninit-continoulsy" /><item><title>RE: UARTE crash when init and uninit continoulsy</title><link>https://devzone.nordicsemi.com/thread/380533?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb7a08cc-9d3a-4cdc-bf26-75ebb9f59da8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="John12"]I&amp;#39;m using nRF52833, nRF16 SDK[/quote]
&lt;p&gt;We did some fixes when it comes to libuarte unint in SDK 17. Please try to backport these libuarte files from nRF5-SDK 17.1.0 , and see if it solves the issue:&lt;/p&gt;
&lt;p&gt;nrf_libuarte_async.c&lt;br /&gt;nrf_libuarte_async.h&lt;br /&gt;nrf_libuarte_drv.c&lt;br /&gt;nrf_libuarte_drv.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE crash when init and uninit continoulsy</title><link>https://devzone.nordicsemi.com/thread/379831?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 09:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfa41bd6-1c36-4820-b996-60d519676924</guid><dc:creator>John12</dc:creator><description>&lt;p&gt;I tried to wait for the event TX_DONE before uninit but after 1/2 days hang my device, I get an error that nRF Uarte can&amp;#39;t receive anything from SIM or GPS&lt;br /&gt;When I check third party SIM and GPS still working. It&amp;#39;s to hard to get this error because when I hang this device for 1/2 day or sometimes 1 day to get this error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE crash when init and uninit continoulsy</title><link>https://devzone.nordicsemi.com/thread/379822?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 08:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8325b8-9f36-4f20-a836-8af23b862752</guid><dc:creator>Sigurd</dc:creator><description>[quote user="John12"]Thank for your suggestion. I&amp;#39;ll try.[/quote]
&lt;p&gt;Ok, let me know how it goes.&lt;/p&gt;
[quote user="John12"]But in my program each uninit / init uarte I added nrf_delay_ms (2000).[/quote]
&lt;p&gt;Looking at your code-snippet, there was no delay between sending and&amp;nbsp;nrf_libuarte_async_uninit()&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE crash when init and uninit continoulsy</title><link>https://devzone.nordicsemi.com/thread/379787?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 02:19:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65fbdd37-18f4-4636-ac37-30cfbda92102</guid><dc:creator>John12</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;br /&gt;I&amp;#39;m using nRF52833, nRF16 SDK&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/90550/uarte-crash-when-init-and-uninit-continoulsy/379646"]Could you try waiting for the event&amp;nbsp;&lt;em&gt;NRF_LIBUARTE_ASYNC_EVT_TX_DONE&lt;/em&gt;&lt;span&gt;&amp;nbsp;, before calling&amp;nbsp;nrf_libuarte_async_uninit()?&lt;/span&gt;[/quote]
&lt;p&gt;Thank for your suggestion. I&amp;#39;ll try.&lt;br /&gt;But in my program each uninit / init uarte I added nrf_delay_ms (2000). I think wtih small amount of data I transfer. 2000ms is enough too uinit / init uarte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE crash when init and uninit continoulsy</title><link>https://devzone.nordicsemi.com/thread/379646?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 08:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f54f9b-7040-4045-8e43-75cd0eafa5b3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK version are you using?&lt;/p&gt;
&lt;p&gt;Could you try waiting for the event&amp;nbsp;&lt;em&gt;NRF_LIBUARTE_ASYNC_EVT_TX_DONE&lt;/em&gt;&lt;span&gt;&amp;nbsp;, before calling&amp;nbsp;nrf_libuarte_async_uninit()?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>