<?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>Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92827/can-data-in-the-cache-be-moved-to-the-rf-fifo-via-dma</link><description>I want to increase the rate of data from UARTE to RF FIFO.Can data be transferred from the cache to the RF FIFO using DMA? 
 
 nrf52832 nRF5_SDK_17.1.0_ddde560 S132</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Oct 2022 12:06:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92827/can-data-in-the-cache-be-moved-to-the-rf-fifo-via-dma" /><item><title>RE: Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/thread/391642?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 12:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7580a474-faf3-4ae1-8fa8-4e13076fe25a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That is true.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The speed is set for a given baudrate. That is not possible to change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/thread/391629?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 11:35:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe05edcf-1087-4839-9a50-d3b95c7b13a9</guid><dc:creator>snail_2</dc:creator><description>&lt;ul&gt;
&lt;li&gt;
&lt;p class="src grammarSection highlight" data-group="1-1"&gt;I think I found the reason&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;uarte has two free bits,460800/(12*1024)=37.5kb/s&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/thread/391593?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 09:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89aed638-961d-4ae0-b132-9e3dd84a98e8</guid><dc:creator>snail_2</dc:creator><description>&lt;p&gt;&lt;span&gt;A baud rate of 460800 equals 45kB/s.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p class="src grammarSection highlight" data-group="1-1"&gt;The actual serial port rate is about 38kb/s&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/thread/391571?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 07:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7395a3b1-cfe8-4586-81c2-50a384a3d7c9</guid><dc:creator>snail_2</dc:creator><description>&lt;ul&gt;
&lt;li&gt;
&lt;p class="src grammarSection" data-group="1-1"&gt;How can I increase the rate without changing the baud rate&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/thread/390906?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 07:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b76d217-bc82-45ca-a352-d7c14a5c313a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;app_uart_get() will give you one byte at the time, yes. You need to call it in a loop to get more bytes. But this uses an internal buffer (app_fifo) and the&amp;nbsp;app_uart module also&amp;nbsp;gives you an interrupt whenever new data is available (which is where you would typically call app_uart_get())&lt;/p&gt;
&lt;p&gt;A baud rate of 460800 equals 57kB/s.&lt;/p&gt;
&lt;p&gt;You can increase the uart baudrate to 1M (1000000), which equals 125kB/s.&lt;/p&gt;
&lt;p&gt;in ble_app_uart, you can do so by changing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;.baud_rate&amp;nbsp; &amp;nbsp; = NRF_UART_BAUDRATE_115200&lt;br /&gt;to&lt;br /&gt;.baud_rate&amp;nbsp; &amp;nbsp; =&amp;nbsp;NRF_UART_BAUDRATE_1000000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But of course the baudrate needs to be matched on the connected device.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/thread/390761?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 08:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d148c2c3-faa3-44d2-8f76-be147772d230</guid><dc:creator>snail_2</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for your help.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p class="src grammarSection highlight" data-group="1-1"&gt;I have two more questions.&lt;span&gt;app_uart_get() only gets one byte at a time. Can I use it to get more than one byte at a time?I see DMA carrying multiple bytes at a time. Can I get multiple bytes at a time if I use registers directly?I need to transmit data through uart and Bluetooth, and I want to increase the rate as much as possible.&lt;span class="transSent highlight" data-group="0-0"&gt;The current baud rate 460800 peripheral is 37.5kb/s, and I want to find a way to increase the rate on the uart.&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt; The Bluetooth rate is about 120kb/s.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data in the cache be moved to the RF FIFO via DMA?</title><link>https://devzone.nordicsemi.com/thread/390631?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 11:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ada405f-028b-4d41-aee6-bb95882d9ec7</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No, that is not possible, unfortunately. It is not a full fledged DMA in that way. In addition, if you are using the softdevice (s132), then you will not have full access to the radio either way, and all the data that you want to send over BLE needs to be wrapped in headers before it is sent, which is what the SoftDevice will do for you. But you need to use the SoftDevice API.&lt;/p&gt;
&lt;p&gt;Perhaps you want to look into the ble_app_uart example from SDK17.1.0\examples\ble_peripheral\ble_app_uart. Perhaps this is doing something similar to what you want to acheive.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>