<?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 data loss on nRF52832 and nRF52840 when using EasyDMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31230/uarte-data-loss-on-nrf52832-and-nrf52840-when-using-easydma</link><description>I&amp;#39;m trying to read data over UART as fast as possible using the double-buffering feature and EasyDMA, but even this simple example I&amp;#39;ve posted is losing data. 
 I&amp;#39;ve set up three buffers: 
 
 Active - the one EasyDMA is writing into. 
 Next - next buffer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Mar 2018 20:45:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31230/uarte-data-loss-on-nrf52832-and-nrf52840-when-using-easydma" /><item><title>RE: UARTE data loss on nRF52832 and nRF52840 when using EasyDMA</title><link>https://devzone.nordicsemi.com/thread/124466?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 20:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29fb821-8115-4bc6-9f17-a226e587328e</guid><dc:creator>mark.wayne</dc:creator><description>&lt;p&gt;I went through everything in your post and it turns out my uart terminal is not capable of sending the big chunk of data I was copy-pasting into it.&lt;/p&gt;
&lt;p&gt;When I reduce the size to something that still exercises the buffers it works!&lt;/p&gt;
&lt;p&gt;Thank you for pointing me in the right direction!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE data loss on nRF52832 and nRF52840 when using EasyDMA</title><link>https://devzone.nordicsemi.com/thread/124183?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 13:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aae9019-77e9-4950-928a-15b9abe7fe84</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have tried to send 31 * 32 bytes via my uart terminal (maximum allowed transmission by the terminal), and I can&amp;#39;t seem to replicate your problem.&lt;/p&gt;
&lt;p&gt;I tried to add to your code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        ...
        counter++;
        if(counter &amp;gt;=31)
        {
            counter = 0;
        }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And it always stops on the breakpoint I placed there after I send the packet. I can also see in the buffers that the data is aligned with the end of the data that I send, so it indicates that I don&amp;#39;t loose any data. I have tested it quite a few times. Do you get data loss often? I tried to send 31*32 (=992) bytes about 20 times in a row, and the breakpoint always fired.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you configured the sdk_config.h file, or in some other way&amp;nbsp;possibly changed to use the RC Oscillator instead of the crystal? Have you tried to check the RX pin with e.g. a logic analyzer to see if all the data is sent correctly? What&amp;nbsp;device are you sending the UART data from?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE data loss on nRF52832 and nRF52840 when using EasyDMA</title><link>https://devzone.nordicsemi.com/thread/124020?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 17:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d5a05a-9c01-41d3-88b4-daaee6414628</guid><dc:creator>mark.wayne</dc:creator><description>&lt;p&gt;Sorry, I&amp;#39;ve been trying a bunch of things and must have copied the wrong file!&lt;/p&gt;
&lt;p&gt;I changed the UART include header in the example above and renamed the pins properly. When I replace main.c in the Blinky example with the code above and add the nrf_drv_common.h/.c file to the project I&amp;#39;m able to compile with uVision.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE data loss on nRF52832 and nRF52840 when using EasyDMA</title><link>https://devzone.nordicsemi.com/thread/123950?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 14:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:315d2806-d72e-438f-a31f-4bf1316bc00b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you changed any files outside the project folder? I am not able to run your application (also after the obvious changes, like p6 and p8).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>