<?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>SDK 17.1.0 libuarte - TX buffer handling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80259/sdk-17-1-0-libuarte---tx-buffer-handling</link><description>Hi, After years of working with nrf_serial, we are starting a new project and want to use the lastest and greatest SDK and get rid of legacy drivers. libuarte is tempting because of its use of DMA. When working with libuarte, I came up with a couple of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Oct 2021 14:42:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80259/sdk-17-1-0-libuarte---tx-buffer-handling" /><item><title>RE: SDK 17.1.0 libuarte - TX buffer handling</title><link>https://devzone.nordicsemi.com/thread/332403?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 14:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea4631f3-7d65-4ad8-86c0-1a98f8319bba</guid><dc:creator>Norbert</dc:creator><description>&lt;p&gt;OK, thanks. I&amp;#39;ll add a wrapper around libuarte then which will do the TX buffer handling.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17.1.0 libuarte - TX buffer handling</title><link>https://devzone.nordicsemi.com/thread/332396?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 14:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b388fe-68ab-4d2b-9528-f7a33ad5e2e5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes,&amp;nbsp;your theory looks correct. The location of the data buffer you provide to nrf_libuarte_async_tx(), is the same as is used directly by the UARTE HW.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="196" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8512.pastedimage1633356660711v1.png" width="284" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As mentioned in the UARTE chapter in the PS, &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fuarte.html&amp;amp;anchor=concept_l5y_hcm_wr"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fuarte.html&amp;amp;anchor=concept_l5y_hcm_wr&lt;/a&gt;&amp;nbsp;, this&amp;nbsp;pointer needs to point to RAM. (&lt;span&gt;If the TXD.PTR and the RXD.PTR are not pointing to the Data RAM region, an EasyDMA transfer may result in a HardFault or RAM corruption.&lt;/span&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>