<?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>Improve Hardware UART Speed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71857/improve-hardware-uart-speed</link><description>I am using NRFSDK 1702. I have one NRF52840 as central and multiple peripherals. The central receives data from the peripherals and then transmit the received data via hardware UART interface to the computer. The UART baud rate is set at 115,200. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Feb 2021 16:19:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71857/improve-hardware-uart-speed" /><item><title>RE: Improve Hardware UART Speed</title><link>https://devzone.nordicsemi.com/thread/295907?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 16:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11422024-3f91-40c5-93b4-2e11b4250ce9</guid><dc:creator>davidz</dc:creator><description>&lt;p&gt;Thank you and this is very helpful. It is all clear now :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Improve Hardware UART Speed</title><link>https://devzone.nordicsemi.com/thread/295862?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 14:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb01c0e-5e83-42cf-a61b-6a7778fa0c13</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No problem! 1. The buffer is limited by the size of the EasyDMA pointer, which on the nRF52840, is 16 bits long. This means that a single DMA buffer can be up to 65 kB. 2. Yes, the buffer for TX and RX is configured independently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Improve Hardware UART Speed</title><link>https://devzone.nordicsemi.com/thread/295701?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 17:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360a13a5-d4c7-4c79-bc77-b683199ea53d</guid><dc:creator>davidz</dc:creator><description>&lt;p&gt;Thank you very much Vidar. I have&amp;nbsp;two more questions:&lt;/p&gt;
&lt;p&gt;1. How big can the UART_TX_BUF_SIZE and&amp;nbsp;UART_RX_BUF_SIZE be? Is it safe to give a number of 16384 or bigger?&lt;/p&gt;
&lt;p&gt;2. Since there is no need for me to assign a big number for the&amp;nbsp;&lt;span&gt;UART_RX_BUF_SIZE, can I give different buffer size to UART RX and TX? From APP_UART_FIFO_INIT definition, it looks like it is safe to do so.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Improve Hardware UART Speed</title><link>https://devzone.nordicsemi.com/thread/295641?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 14:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79240ec0-b442-47e7-b2d6-532c7e23a778</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The app uart library can only send one byte at a time and thus not as efficient when you need to send larger chunks of data. I think it maybe the easiest way to improve the transfer speed is to work directly with the UART driver (&lt;span&gt;&lt;a title="UART" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_uart.html?cp=7_1_2_0_19"&gt;UART&lt;/a&gt;&lt;/span&gt;) and set up larger transmit buffers to utilize the DMA support in UARTE. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>