<?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>High speed UART with libuarte -&amp;gt; &amp;quot;Unexpected RX free input parameter&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57349/high-speed-uart-with-libuarte---unexpected-rx-free-input-parameter</link><description>Hi, 
 
 Currently I’m working on a device which is, on the one side connected to a smartphone via BLE and on the other side to another uC via UART. 
 Therefore, the UART speed is fixed to 1MB/s (without flow control). For this reason, I must use DMA to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Feb 2020 15:26:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57349/high-speed-uart-with-libuarte---unexpected-rx-free-input-parameter" /><item><title>RE: High speed UART with libuarte -&gt; "Unexpected RX free input parameter"</title><link>https://devzone.nordicsemi.com/thread/234030?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 15:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e441bd-132b-4f9d-997f-f445b10bafd6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Great!&lt;/p&gt;
[quote userid="87092" url="~/f/nordic-q-a/57349/high-speed-uart-with-libuarte---unexpected-rx-free-input-parameter/234015"]Is it necessary to switch to right project?[/quote]
&lt;p&gt;Yes, you should use the pca10056 projects when using the nRF52840. The pca10056 projects are configured to use the correct register header files and startup code for the nRF52840.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High speed UART with libuarte -&gt; "Unexpected RX free input parameter"</title><link>https://devzone.nordicsemi.com/thread/234015?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 14:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa0350c-8bc3-4a78-b19e-b741dd49c14f</guid><dc:creator>VGKilian</dc:creator><description>&lt;p&gt;You are right i use the wrong&amp;nbsp;&lt;span&gt;project! &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After placing&amp;nbsp;nrf_libuarte_async_rx_free function at the right spot, every thing works fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it necessary to switch to right project?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High speed UART with libuarte -&gt; "Unexpected RX free input parameter"</title><link>https://devzone.nordicsemi.com/thread/234008?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 14:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f680710-db49-4eb9-be64-2e2432be8cea</guid><dc:creator>VGKilian</dc:creator><description>&lt;p&gt;I found the error.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;nrf_libuarte_async_rx_free function() was called in the wrong place.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High speed UART with libuarte -&gt; "Unexpected RX free input parameter"</title><link>https://devzone.nordicsemi.com/thread/233738?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 12:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07085225-fa24-4339-be18-84650e895f11</guid><dc:creator>Sigurd</dc:creator><description>[quote user="VGKilian"]Any idea how to fix it?[/quote]
&lt;p&gt;&amp;nbsp;Are you sure that you are using the nRF52840(pca10056) project ? Maybe you are using the nRF52832(pca10040) project ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MAX_DMA_XFER_LEN for nRF52840 is&amp;nbsp;65535, but for nRF52832 it&amp;#39;s 255.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High speed UART with libuarte -&gt; "Unexpected RX free input parameter"</title><link>https://devzone.nordicsemi.com/thread/232964?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 08:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a9ee2fa-a6a8-46da-8634-291e76ba3e01</guid><dc:creator>VGKilian</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to increase&amp;nbsp;&lt;span&gt;_rx_buf_size&amp;nbsp; because of line 584 in nrf_libuarte_drv.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ASSERT(len &amp;lt;= MAX_DMA_XFER_LEN);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In my case len ist 512 and MAX_DMA_XFER_LEN is 255. -&amp;gt;&amp;nbsp;#define MAX_DMA_XFER_LEN&amp;nbsp; &amp;nbsp; ((1UL &amp;lt;&amp;lt; UARTE0_EASYDMA_MAXCNT_SIZE) - 1)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any idea how to fix it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High speed UART with libuarte -&gt; "Unexpected RX free input parameter"</title><link>https://devzone.nordicsemi.com/thread/232721?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 07:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f051ee24-d691-4c0d-a221-d393342c982d</guid><dc:creator>VGKilian</dc:creator><description>&lt;p&gt;Hi Siguard,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The amount of send data is not constant, but it is less then 100 bytes per telegram.&lt;/p&gt;
&lt;p&gt;I tried to increase the&amp;nbsp;&lt;span&gt;_rx_buf_size&amp;nbsp;to 512. After that the&amp;nbsp;app_error_fault_handler() function is called short time after bootup.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Logging:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;error&amp;gt; app: ERROR 3735928559 [Unknown error code] at [myFolder]\nRF5_SDK_16.0.0_98a08e2/componB&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sadly the error message is truncated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kilian&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High speed UART with libuarte -&gt; "Unexpected RX free input parameter"</title><link>https://devzone.nordicsemi.com/thread/232538?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 12:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f45ed65b-cbd8-4a8d-bc86-e737bebb8659</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How many bytes are you sending ?&lt;/p&gt;
&lt;p&gt;Could you try to increase the _rx_buf_size used in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__libuarte__async.html?cp=7_1_6_11_28_8#ga9dd1619dcfe11f532ed96e37ebd2aca4"&gt;NRF_LIBUARTE_ASYNC_DEFINE&lt;/a&gt;&lt;span&gt;() (default in the libuarte example is 255)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>