<?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>SDK17.0.2 LIBUART PROBLEM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71643/sdk17-0-2-libuart-problem</link><description>Hi, 
 I setted up the LIBUARTE on my custom board... 
 NRF52833,SDK17.0.2,With Softdevice enabled 
 
 CODE: 
 ----------------------------------- 
 NRF_LIBUARTE_ASYNC_DEFINE(modem_libuarte, 0, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, NRF_LIBUARTE_PERIPHERAL_NOT_USED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Feb 2021 18:50:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71643/sdk17-0-2-libuart-problem" /><item><title>RE: SDK17.0.2 LIBUART PROBLEM</title><link>https://devzone.nordicsemi.com/thread/294477?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 18:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d516f62b-efa7-4a10-acb3-1274312bc504</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_libuarte_async_tx() takes a pointer to the data buffer, which is assigned to the UARTE peripheral to get the the data directly from RAM (through EasyDMA). Since you are passing the string directly to the function, and not through a pointer, this string will be stored in flash, where the UARTE peripheral have no way to access it. To fix this, you should declare an array first with the data, which you pass to the function:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint8_t uart_string[] = &amp;quot;12345&amp;quot;;
err_code = nrf_libuarte_async_tx(&amp;amp;libuarte,uart_string,5);
APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using two instances of libUARTE should be straightforward, just initialize and configure both instances as shown in the libUARTE example. You need to make sure to either use different resources for each instance (RTC/TIMER), or use the app_timer option.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK17.0.2 LIBUART PROBLEM</title><link>https://devzone.nordicsemi.com/thread/294474?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 18:42:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc2d7148-b4b2-413e-81c0-0a7b61e340f8</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;Found the problem !&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_libuarte_async_tx(&amp;amp;modem_libuarte,&amp;quot;12345&amp;quot;,5);&amp;nbsp; &amp;nbsp; &amp;nbsp;the &amp;quot;12345&amp;quot; is cleared on exit the function.....i needed to use static memory instead&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>