<?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>Zephyr UART_ASYNC_API not recovering from UART_RX_STOPPED event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68203/zephyr-uart_async_api-not-recovering-from-uart_rx_stopped-event</link><description>When turning off the UART device, the UART ASYNC API callback will be called with the UART_RX_STOPPED event. 
 This will then not recover, and the event will be spammed infinitely. 
 I have tried immediately re-enabling the UART, and disabling the UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Nov 2020 12:24:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68203/zephyr-uart_async_api-not-recovering-from-uart_rx_stopped-event" /><item><title>RE: Zephyr UART_ASYNC_API not recovering from UART_RX_STOPPED event</title><link>https://devzone.nordicsemi.com/thread/280087?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 12:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:672f2553-da70-4d30-b3ab-e040dbc64619</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The event&amp;nbsp;&lt;span&gt;UART_RX_STOPPED&amp;nbsp;is generated when an error with the UART happens (see the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.0-ncs1/drivers/serial/uart_nrfx_uarte.c#L737-L754"&gt;error_isr() function in uart_nrfx_uarte.c&lt;/a&gt;). Read about the different&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fuarte.html&amp;amp;cp=4_0_0_5_33_3&amp;amp;anchor=concept_fpm_qcm_wr"&gt;Error conditions&lt;/a&gt;&amp;nbsp;on the infocenter and check out the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fuarte.html&amp;amp;cp=4_0_0_5_33_8_20&amp;amp;anchor=register.ERRORSRC"&gt;ERRORSRC&lt;/a&gt;&amp;nbsp;register as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess you are getting a framing error and/or a break error, due to a floating rx pin when turning off the 3rd party LTE-M modem. Could you confirm this by reading the value of&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;evt-&amp;gt;&lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;rx_stop&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;reason&lt;/code&gt;&amp;nbsp;in your uart callback function?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Instead of handling this in the software, you should probably go to the core of the issue, and solve that. Check out&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61310/uart-error-codes"&gt;this case&lt;/a&gt;&amp;nbsp;for how to solve this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr UART_ASYNC_API not recovering from UART_RX_STOPPED event</title><link>https://devzone.nordicsemi.com/thread/279550?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 15:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d221a881-b822-46df-8e9d-abe8e546143c</guid><dc:creator>newUser</dc:creator><description>&lt;p&gt;Hi Simon, thank you for your response.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using NCS v1.4.0 (and it also happens with v1.3.1). The issue is occurring when we turn off our 3rd party LTE-M modem, so reproducing it on your side might be quite hard.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m mainly curious about how to handle this graciously.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr UART_ASYNC_API not recovering from UART_RX_STOPPED event</title><link>https://devzone.nordicsemi.com/thread/279540?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 15:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c399a38-58b7-4cea-897b-26cd33591e4b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you upload a zipped sample which I can run to reproduce this issue? Please mention the NCS tag used for the sample&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>