<?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>nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55269/nrfutil-dfu-upload-extremely-slow</link><description>as already written in other threads (two years old) the DFU upload with nrfutil is extremely slow. 
 
 Transferring the same data from a smartphone (with BLE5) takes about 20seconds, with nrfutil 2 minutes or more. 
 We use nrf52840 DKs for the PC side</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jan 2020 07:05:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55269/nrfutil-dfu-upload-extremely-slow" /><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/229517?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 07:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3df129e6-678f-4133-8a20-c27819f4ea7c</guid><dc:creator>Jussi</dc:creator><description>&lt;p&gt;Hi Florian and thank you for the answer.&lt;/p&gt;
&lt;p&gt;I actually also tried to set the Windows timer resolution to 1ms with a third party app, but it did not improve the upload speed. I will try to play around with MTU settings if it could improve the speed closer to same what we have on Linux.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Jussi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/229513?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 06:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df097d2e-0c1a-4bb9-8559-e18c293e9181</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Jussi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see these errors also from time to time. I think more often from windows than from linux.&lt;/p&gt;
&lt;p&gt;I suspect that it has something do, that the peripheral proposes a MTU and the central tries to send a MTU request at the same time. Then the pc-ble-driver somehow dismisses one of the message and doesn&amp;#39;t forward the reply to the pc-ble-driver-py.&lt;/p&gt;
&lt;p&gt;I saw this also on sniffer logs. The data packages seem to be sent correctly but the message is not delivered correctly on the PC side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could also be a timing issue as described in my other thread &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56475/windows-notifications-stopped-with-high-mtu-in-pc-ble-driver-py"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56475/windows-notifications-stopped-with-high-mtu-in-pc-ble-driver-py&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/229420?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 13:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a26166-3a21-452b-8afa-5cb42f3d902d</guid><dc:creator>Jussi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested to upload our firmware zip with a NRF52840DK board, and using&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrfutil 5.2.0 on linux takes ~50 seconds&lt;/strong&gt; and &lt;strong&gt;nrfutil 6.0.1 on windows takes ~100 seconds.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Could this same issue be related to our problem?&lt;/p&gt;
&lt;p&gt;I tried to use nrfutil 6.0.1 on linux to test the speed, but I can&amp;#39;t get it to work:&lt;/p&gt;
&lt;p&gt;pc_ble_driver_py.exceptions.NordicSemiException: MTU exchange request failed. Common causes are: missing att_mtu setting in ble_cfg_set, different config tags used in ble_cfg_set and connect.&lt;/p&gt;
&lt;p&gt;The size of the firmware zip file is 254K. The connectivity firmware was updated to latest when using the nrfutil 6.0.1 on windows.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Jussi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/227546?ContentTypeID=1</link><pubDate>Sun, 05 Jan 2020 19:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d944e997-7a11-401f-b042-eb3b9ba6d36f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Florian,&lt;/p&gt;
&lt;p&gt;Glad to hear that it was fixed. Again, thank you for reporting this bug.&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><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/227191?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 08:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:808aec47-db5d-4fd9-9e66-c96522b34008</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I just tested with nrfutil 6.0.1 and it is much better now.&lt;/p&gt;
&lt;p&gt;Thanks for fixing it.&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/226089?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 10:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75574cbe-462f-451e-ab64-6b1c84de75b0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I understand. I have reported this to our team that write our tools. Hopefully, they will be able to patch it soon.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/226044?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 08:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c3b0e4-21e6-48a1-bf02-d30ea011885f</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;great that you can reproduce the issue.&lt;/p&gt;
&lt;p&gt;If I can help to test a fix, please tell me.&lt;/p&gt;
&lt;p&gt;The problem is, that when using pc-ble-driver-py with python 3, nrfutil 6 is a dependency so its not so easy to install an older version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/225423?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 14:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae68bdf5-03c7-48d0-9d30-83924e175eb2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Florian,&lt;/p&gt;
&lt;p&gt;I took a sniffer trace today. You are correct. I compared the sniffer traces of nrfutil 6.0.0 and nRF Connect. Using nRF Connect the master (the DK that is used by nRF Connect) requests an MTU size of 247Bytes. Nrfutil also does this, but right after this request/response, nRF Connect requests LL_LENGTH_REQ (Data length extension) of 251 octets. Nrfutil doesn&amp;#39;t do this.&lt;/p&gt;
&lt;p&gt;I have reported this internally. I believe this issue is not present in nrfutilv5.0.0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;FYI our nrfutil team has updated the softdevice used in nrfutil 6.0.0, which is probably why this was left out by a mistake.&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><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/225065?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 06:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cadd4ba-ec97-4efa-a292-4404ce8a1add</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;It is nrfutil 6.0.0 installed from pip.&lt;/p&gt;
&lt;p&gt;$ nrfutil -v -v -v&amp;nbsp; version&lt;br /&gt;nrfutil version 6.0.0&lt;br /&gt;2019-12-12 06:58:39,406 PyPi URL: &lt;a href="https://pypi.python.org/pypi/nrfutil"&gt;pypi.python.org/.../nrfutil&lt;/a&gt;&lt;br /&gt;2019-12-12 06:58:39,406 GitHub URL: &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;https://github.com/NordicSemiconductor/pc-nrfutil&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I just had a look at the sourcecode, and I could run nrfutil also from the github repository, so if there would be some improvements, I can test them.&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/224980?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 15:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f38afed-dc74-4d71-ac5b-67de2def3991</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you please confirm what it prints when you write&amp;nbsp; &amp;quot;nrfutil version&amp;quot;. I don&amp;#39;t mean to be rude, but I just want to know that we are looking at the same tools when we try to figure out the cause of the speed difference.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know the details about nrfutil and what it uses or not. I have to dig into some documentation or source code, but I want to know what version to dig into first.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/224646?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 09:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d604bac2-e4ed-464a-9c74-29b7575b2f33</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m definately using nrfutil 6.0.0.&lt;/p&gt;
&lt;p&gt;Is DLE used in nrfutil? I can&amp;#39;t find any reference in the pc-nrfutil repository to e.g. BLEGapDataLengthParams from pc-ble-driver-py.&lt;/p&gt;
&lt;p&gt;Or is this a default setting to use DLE?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/224424?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 12:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b204e09-40b9-424e-acea-0506ef04ad8d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I don&amp;#39;t think 2MBPs is supported in nrfutil, no, but it isn&amp;#39;t in nRF Connect for Desktop either.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please double check what version of nrfutil you have in your path? You can use the command &amp;quot;nrfutil version&amp;quot; from a folder that isn&amp;#39;t in the same folder as nrfutil.exe, to make sure that you have the correct version in your path.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrfutil and nRF Connect use a very similar FW. What was updated in a recent version (not sure which one) was that they started to use longer MTU and DLE, which significantly increases the speed.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/224367?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 10:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c51cac-26d5-41b9-8f43-8d05048af1ca</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;unfortunately, I can&amp;#39;t share the hexfile.&lt;/p&gt;
&lt;p&gt;nrfConnect shows 8-9 kb/s.&lt;/p&gt;
&lt;p&gt;With nrfutil, I stop only the time when the progress bar is visible. Usually, the connectivity fw is already flashed so I start it without -f.&lt;/p&gt;
&lt;p&gt;Could it be the missing 2MBit mode in nrfutil? At least in pc-ble-driver-py it is not directly available. (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54895/phy-update-procedure"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/54895/phy-update-procedure&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/224355?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 09:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41c4665c-3fc9-49f5-bf80-2b857f29f4df</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you have an application hex that I can try that is about the same size as the one you use?&lt;/p&gt;
&lt;p&gt;What is the throughput (approximately) when you use nRF Connect for Desktop?&lt;/p&gt;
&lt;p&gt;When you measure the time using nrfutil, do you time it from you see the progress bar, or from you start programming the connectivity board (the pca10056)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/224238?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 15:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edf8c3db-590c-4c0f-833b-303c19f62f17</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;the .zip package has 230 kByte.&lt;/p&gt;
&lt;p&gt;I just checked again with a stopwatch. It takes 2 minutes with nrfutil and 25 seconds with nrfConnect Desktop.&lt;/p&gt;
&lt;p&gt;We are using SDK 15.0.0 for the app and the bootloader and s140_nrf52_6.0.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;The bootloader is minimally modified (jumps automatically after 5s into app), but no changes on the transmission code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could it be, thath the 2MBit mode is not used from nrfutil?&lt;/p&gt;
&lt;p&gt;I tried changing the mtu but it doen&amp;#39;t make a difference when setting it to 23 or 247. Perhaps it is always using 23?&lt;/p&gt;
&lt;p&gt;-&amp;gt; I just saw when running with -v -v -v -v that the MTU change seems to work&lt;/p&gt;
&lt;p&gt;2019-12-06 16:28:48,045 BLE: Enabling longer ATT MTUs&lt;br /&gt;2019-12-06 16:28:48,105 ATT MTU exchanged: conn_handle=0 att_mtu=247&lt;br /&gt;2019-12-06 16:28:48,105 New ATT MTU is 247&lt;br /&gt;2019-12-06 16:28:48,106 BLE: Enabling Notifications&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/224182?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 13:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7352f7b0-792c-4698-bc18-bc2d3962a44d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Florian,&lt;/p&gt;
&lt;p&gt;I am struggling a bit with reproducing this. In my case it takes roughly the same time to transfer a DFU image using nRF Connect for Desktop and nrfutil. I didn&amp;#39;t time it, but it was roughly 20 seconds, and nowhere near the 2 minutes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is your DFU image, i.e. the application particularly big, or similar to the size of the examples in the SDK?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you change anything in the bootloader? What SDK is the bootloader from, and what softdevice do you use?&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><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/223900?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 12:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99ff44d6-428b-41f0-8b9f-2b41890939b6</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;the connectivity firmware on the nrf52840 DK was recently flashed.When using nrfConnect (2.6.2) another fw is flashed.&lt;/p&gt;
&lt;p&gt;With nrfConnect the upload speed is similar as from a smartphone.&lt;/p&gt;
&lt;p&gt;The target uses also nrf52840.&lt;/p&gt;
&lt;p&gt;The non alpha version shows the same behaviour.&lt;/p&gt;
&lt;p&gt;We tested this from Linux and Windows.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil DFU upload extremely slow</title><link>https://devzone.nordicsemi.com/thread/223866?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 11:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:744fad2e-41f7-4961-884d-3017a1b465c6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So the device that is &amp;quot;connected&amp;quot; to nrfutil, the nRF52840 DK. Can you please test by using the same DK on nRF Connect for Desktop to perform the DFU? Is the speed the same there?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What nRF chip does your target use? I assume that this is not the issue, since it is faster using the smartphone.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The nRF52840 DK is erased at one point between two years ago and now? So that it is not running the nrfutil FW flashed 2 years ago? Try &amp;quot;nrfjprog -e&amp;quot; before the &amp;quot;nrfutil dfu ble ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Please test &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;2. Please try to update nrfutil to the non-alpha version 6.0.0 &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases" rel="noopener noreferrer" target="_blank"&gt;found here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know about your results.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>