<?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 RX data loss from time to time when BLE communication is enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84043/uart-rx-data-loss-from-time-to-time-when-ble-communication-is-enabled</link><description>Hi, 
 
 We have a device in production based on nrf52840 which uses UARTE to TX/RX data to/from a washing machine and in paralel communicates with a Phone App via BLE. 
 SD: 132_3.0 | nRF5 SDK v12.3.0 
 Communicating with the machine via UART works without</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jan 2022 12:04:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84043/uart-rx-data-loss-from-time-to-time-when-ble-communication-is-enabled" /><item><title>RE: UART RX data loss from time to time when BLE communication is enabled</title><link>https://devzone.nordicsemi.com/thread/349743?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 12:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:449bb245-8f53-4b56-ac2f-db0003429c4c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would strongly recommend you upgrade to the latest SDK as version 12.x.x. does not have production level support for the nRF52840. See &amp;quot;&lt;span&gt;&lt;a title="SDKs and SoftDevices " href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_rev_sdk_sd_comp_matrix.html?cp=4_0_3_2"&gt;SDKs and SoftDevices &lt;/a&gt;&lt;/span&gt;&amp;quot; for supported SDK and softdevice combinations.&lt;/p&gt;
&lt;p&gt;For reliable UART communication with Softdevice and no HWFC you have to use larger DMA buffers. I recommend using the &lt;span&gt;&lt;a title="Libuarte - advanced UARTE driver" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_libuarte.html?cp=8_1_3_28"&gt;Libuarte - advanced UARTE driver&lt;/a&gt;&lt;/span&gt; for this.&lt;/p&gt;
[quote user=""]I tried to make buffer size 2 but it stopped receiving data...[/quote]
&lt;p&gt;NRF_DRV_UART_EVT_RX_DONE is signaled after the receive buffer is full. So with this configuration, you will have to receive 2 bytes before the event gets raised.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>