<?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>uart communication error when the data is sent</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99313/uart-communication-error-when-the-data-is-sent</link><description>It is supposed to communicate with stm32 and uart. When data comes into rx (to ble), app_uart_get is used, but an error occurs once when data is transmitted in it, so the data does not come in properly. 
 1. stm32 uart setting 
 
 =&amp;gt; flow control disabled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2023 13:23:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99313/uart-communication-error-when-the-data-is-sent" /><item><title>RE: uart communication error when the data is sent</title><link>https://devzone.nordicsemi.com/thread/423576?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 13:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e17e9b4a-bf47-4aec-84cd-870775af5206</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it so that the driver on the nRF side reports an error? If so, you should get the value of the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/uarte.html?cp=5_1_0_5_31_8_20#register.ERRORSRC"&gt;ERRORSRC&lt;/a&gt;&amp;nbsp;and can compare that with the register description to know more about what happened.&lt;/p&gt;
&lt;p&gt;Before knowing that, I have some questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Does this always happen in the same way?&lt;/li&gt;
&lt;li&gt;Can you say more about your configuration (Like the values of the defines you pass to&amp;nbsp;APP_UART_FIFO_INIT)?&lt;/li&gt;
&lt;li&gt;Did you start the HFXO before doing UART? (That is not always needed and may not be needed here, though with higher baud rates and longer&amp;nbsp;transactions it becomes more and more important).&lt;/li&gt;
&lt;li&gt;Do you use the UARTE (with DMA) or UART peripheral?&lt;/li&gt;
&lt;li&gt;Is it possible on your HW to use flow control? If the applciation&amp;#39;s on both sides are not always ready to receive data over UART, that will make the communication much more robust.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>