<?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>Serial DFU with higher baudrate using custom nRF52832 board and SDK 15.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59095/serial-dfu-with-higher-baudrate-using-custom-nrf52832-board-and-sdk-15-2</link><description>Hi, 
 I built a simple custom board with an nRF52832 ebyte BLE module with no added components except for the RST and DFU buttons, the serial wiring are the same pins (RX, TX, DTR, CTS) as with the DK board. While I can program my custom board with any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jul 2020 00:32:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59095/serial-dfu-with-higher-baudrate-using-custom-nrf52832-board-and-sdk-15-2" /><item><title>RE: Serial DFU with higher baudrate using custom nRF52832 board and SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/258486?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 00:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d60bd362-87c5-4e7b-a3f2-a4ba612beed4</guid><dc:creator>tBStar</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried and it did make the transfer slower with the same baudrate of 9600. I went back and checked my parameters and I was able to clock in 115200 with the following configuration:&lt;/p&gt;
&lt;p&gt;sdk_config:&lt;br /&gt;#define NRFX_UARTE_DEFAULT_CONFIG_HWFC 1&lt;br /&gt;#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920&lt;/p&gt;
&lt;p&gt;firmware project:&lt;br /&gt;No change&lt;/p&gt;
&lt;p&gt;nrfutil: V5 or earlier seems to perform faster and -fc 0 is required for this to work&lt;br /&gt;nrfutil dfu serial -pkg .\ebyte_nrf52832\s132\armgcc\_build\dfu-package.zip -p COM5 -fc 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU with higher baudrate using custom nRF52832 board and SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/258475?ContentTypeID=1</link><pubDate>Sun, 05 Jul 2020 19:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da68560b-cdf8-41c2-bf5c-525f944f58c3</guid><dc:creator>tBStar</dc:creator><description>&lt;p&gt;Sorry I totally missed your question, I did not try it yet. I will and let you know. Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU with higher baudrate using custom nRF52832 board and SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/242327?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 09:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cc7c74e-ea8e-4590-9db7-d5c033f3f290</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Have you tried to set PRN to 1 and test with higher baudrate&amp;nbsp; ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU with higher baudrate using custom nRF52832 board and SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/242220?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2020 15:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93d558e9-667d-4689-bdf0-4014d5e28c83</guid><dc:creator>tBStar</dc:creator><description>&lt;p&gt;The only way I could make the Serial DFU work is to cap the baudrate to 9600 with&amp;nbsp;HWFC turned off. Any other attempt using different nRFUtil versions failed. I would like to increase the DFU process hence my question about increasing the baudrate. Sometime I would get&amp;nbsp;NRF_ERROR_NO_MEM : 0x00000004, sometimes I get different error message, depending on the configuration.&lt;/p&gt;
&lt;p&gt;Thank you for your explanation, it makes sense; however, the question remains, how can I speed up the DFU process if possible?&lt;/p&gt;
&lt;p&gt;Whatever the answer may be, a hardware or software solution, I would like to know &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;, someone must have done it by now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU with higher baudrate using custom nRF52832 board and SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/240072?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 14:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19058a1c-e59e-4e37-98c9-3b0ccd8083c1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi tBStar,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please clarify. Did you have problem using higher baudrates WITH FLOW CONTROL or WITHOUT FLOW CONTROL ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The challenge of doing DFU without flow control is that the current implementation doesn&amp;#39;t use EasyDMA ( EasyDMA buffer is only one byte). It rely on the CPU to fetch the data out when it&amp;#39;s filled. However, when the CPU is writing data to flash, it will be blocked. And the maximum time for writing data to flash is 338us. The time it takes for transmitting 1 byte at 9600bps&amp;nbsp; is 833us which is quite safe. If you go to higher you may risk dropping bytes on UART.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What you can do is to change the PRN setting to 1. This way we limit the DFU central to send only one packet and then wait for the response back on the nRF52 before continue. Have a look here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_dfu_transport_serial.html?cp=7_1_3_5_2_3_0#lib_dfu_transport_usb"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_dfu_transport_serial.html?cp=7_1_3_5_2_3_0#lib_dfu_transport_usb&lt;/a&gt;&lt;br /&gt;You can set PRN to 1 with by using &lt;strong&gt;-prn 1&lt;/strong&gt; with nrfutil.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But this would also slow down the DFU process.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>