<?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>Odd behavior with nRF52810 UART transmission</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54345/odd-behavior-with-nrf52810-uart-transmission</link><description>I seem to be getting odd behavior of the UARTE0. Actually, this same behavior happens with the standard UART0. 
 I have a loop that sends a two byte message every 1 second. But actually, the message is sent at random times. 
 When the message is sent</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Nov 2019 09:20:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54345/odd-behavior-with-nrf52810-uart-transmission" /><item><title>RE: Odd behavior with nRF52810 UART transmission</title><link>https://devzone.nordicsemi.com/thread/220246?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 09:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a96501b-8ec6-45ee-94b2-70cdaea0134a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This can happen to the best of us! :) The most important thing is that you found the solution and returned with it for others to see if they have&amp;nbsp;the same issue.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Odd behavior with nRF52810 UART transmission</title><link>https://devzone.nordicsemi.com/thread/220149?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 16:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f659d77a-298f-4751-9b8b-fc6821c4de6e</guid><dc:creator>eBrock</dc:creator><description>&lt;p&gt;OK, now I feel stupid. I didn&amp;#39;t have enough resolution on the scope sampling, so it wasn&amp;#39;t seeing every TX.&lt;/p&gt;
&lt;p&gt;Increasing the samples per second now reveals proper transmission.&lt;/p&gt;
&lt;p&gt;&lt;img alt="UART Trace 2" src="https://devzone.nordicsemi.com/resized-image/__size/640x454/__key/communityserver-discussions-components-files/4/uart_5F00_trace_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Odd behavior with nRF52810 UART transmission</title><link>https://devzone.nordicsemi.com/thread/220134?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 15:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63586b51-9720-45e0-9a4b-2cefa5091ec1</guid><dc:creator>eBrock</dc:creator><description>&lt;p&gt;Yes, I tried waiting for the ENDTX flag and still got the same behavior.&lt;/p&gt;
&lt;p&gt;A couple details I forgot to include:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Declaration of the buffer variable:&lt;/p&gt;
&lt;p&gt;static volatile int8_t uarte0TxBuffer[8];&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// UARTE0 Tx buffer&lt;/p&gt;
&lt;p&gt;SES version 4.30a&lt;/p&gt;
&lt;p&gt;nRF52 SDK 15.3.0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I attached a scope plot. As you can see, the messages are sent at random times, but synchronized with the loop timing.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s like the STARTTX task is not being triggered every time.&lt;/p&gt;
&lt;p&gt;&lt;img alt="UART Trace" src="https://devzone.nordicsemi.com/resized-image/__size/640x454/__key/communityserver-discussions-components-files/4/uart_5F00_trace.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Odd behavior with nRF52810 UART transmission</title><link>https://devzone.nordicsemi.com/thread/220065?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 12:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5745027c-3b46-4761-80a4-07c3b1b660db</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should wait for the nRF to generate ENDTX event that indicate that the transfers is complete by adding this after you have started the transfer:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  while (NRF_UARTE0-&amp;gt;EVENTS_ENDTX == 0)
  {
  }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>