<?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 the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40465/can-the-sdk15-ble-dfu-speed-improvements-be-backported-to-an-sdk14-bootloader</link><description>I&amp;#39;m using SDK14 and the nRF52832, and my bootloader is based on the BLE secure bootloader example from SDK14. I&amp;#39;m currently seeing transfer speeds during the secure DFU process vary from about 0.8KB/s to about 2.5KB/s depending on the device I use to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Nov 2018 02:28:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40465/can-the-sdk15-ble-dfu-speed-improvements-be-backported-to-an-sdk14-bootloader" /><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/158941?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 02:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fcb5d92-aad7-4703-8318-77f64e17c66b</guid><dc:creator>Sydney</dc:creator><description>&lt;p&gt;If anyone comes across this in the future, it&amp;#39;s worth mentioning that I did go the route of porting my entire project, application and bootloader, to SDK 15.2. Where I was previously getting about 2.2-2.4KB/s max with the desktop version of nRF Connect (using an nRF52840 USB dongle as its radio), I now get about 10KB/s with the connection interval configured to 7.5ms (minimum possible). So a 4-5x improvement compared to SDK14. My Galaxy S9 running Android 8.0 is a bit slower at around 8-9KB/s, probably due to Android&amp;#39;s inability to set the connection interval any lower than 11.25ms.&lt;/p&gt;
&lt;p&gt;I got those speeds using the BLE debug version of the secure_bootloader example, changing essentially nothing in the code except some LED stuff to get it compiling for my board. I updated sdk_config.h to set minimum connection interval to 7.5ms. I also configured it to override the default number of BLE DFU buffers (which appeared to be 16-17 if I followed the macros correctly) and set it to 32 buffers, but that didn&amp;#39;t seem to make a difference. I&amp;#39;m not sure if there are any other settings that may be able to get it to go any faster, but I&amp;#39;m pretty happy with the improvements already.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157816?ContentTypeID=1</link><pubDate>Sat, 17 Nov 2018 09:03:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0e6eb0f-26f9-44e5-8d59-c98fe32c6533</guid><dc:creator>Sydney</dc:creator><description>&lt;p&gt;Good to know. Do you know the data rate you&amp;#39;re getting on the transfer with SDK15? Or do you know how big your firmware image is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157814?ContentTypeID=1</link><pubDate>Sat, 17 Nov 2018 08:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69b2fd0b-1ce4-4579-885a-ac4998d2ca2f</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;But I migrated from SDK 13, I don&amp;#39;t know what the performance of SDK 14 is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157813?ContentTypeID=1</link><pubDate>Sat, 17 Nov 2018 08:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a947dc0a-83a3-4b2d-94b0-451ae46861e7</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;For me, an update that used to take roughly 1.5 minutes now finishes in 15 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157812?ContentTypeID=1</link><pubDate>Sat, 17 Nov 2018 08:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee447643-f8da-463c-9390-d88c20ec8a50</guid><dc:creator>Sydney</dc:creator><description>&lt;p&gt;Thanks for the feedback. I think I am going to take a bit of time to size up the work involved with just porting everything to SDK 15.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157811?ContentTypeID=1</link><pubDate>Sat, 17 Nov 2018 08:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8cb47de-0f0b-4e34-b058-70d37576d2ec</guid><dc:creator>Sydney</dc:creator><description>&lt;p&gt;Thanks. This isn&amp;#39;t the answer I was hoping for, but it is the clarification I needed. I&amp;#39;m going to take a day or so to see how much work it will be to just port my whole project over to SDK 15.2, but I have a feeling I&amp;#39;m going to end up just sticking with SDK 14 across the board.&lt;/p&gt;
&lt;p&gt;Do you have any idea how much faster the SDK15+ BLE bootloader updates have made the transfer process?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157429?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 09:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6f63f34-62b4-4747-9b33-fea2e1c5be8a</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;If you haven&amp;#39;t customized the bootloader, migrating it to SDK 15 is pretty easy. I also didn&amp;#39;t have a lot of trouble migrating my application from SDK 14 to 15. I wouldn&amp;#39;t consider migration a horrible idea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157425?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 08:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ff6df6-96de-43f2-bf17-f84912d57dd4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) Using larger MTU and DLE is not enough to get to the same speeds as the bootloader from SDK 15. The request handling library was entirely rewritten to be more efficient. The buffer management in the SDK 14 bootloader is the main bottleneck that was improved.&lt;/p&gt;
&lt;p&gt;2) If you want to use the SDK 15.2 bootloader, then I suspect it is easier to migrate the application as well. The alternative is as you write, to migrate the SDK 15.2 bootloader to S132 version 5,&amp;nbsp;but I am not convinced that it will be less work.&lt;/p&gt;
&lt;p&gt;3) It is definitely possible to use an application based on SDK 14 and a bootloader based on SDK 15.2. However, that means that you have to migrate one of them to a different SoftDevice API, and there&amp;nbsp;have been significant changes. There are also a few other changes related to buttonless DFU, bond sharing etc. that you may need to account for.&lt;/p&gt;
&lt;p&gt;Without knowing details of your application, I would assume that the effort put in to migrating the application to a new SDK version or&amp;nbsp;bootloader to a different SoftDevice version is similar, and then it seems to me that migrating your application to SDK 15.2 is the best solution (unless you just stick with everything from SDK 14, including a slower bootloader).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157363?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 18:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7322d2-861e-4f6a-a328-8bc04e74f85b</guid><dc:creator>Sydney</dc:creator><description>&lt;p&gt;I agree that ideally we would rarely need to do firmware updates. But the reality is that we will likely need customers to be able to do it at some point, and three minutes per device is a pretty tough ask of our users when some users may be managing tens or more of our devices. And I currently have a small window where bootloader changes are much easier to make than they will be going forward, so I&amp;#39;m hoping to get some optimizations in now.&lt;br /&gt;&lt;br /&gt;So a few questions on the topic.&lt;br /&gt;1) It seems like it shouldn&amp;#39;t be that difficult to get MTU and DLE negotiation working on the SDK14 bootloader. But even if I can get it working, would DFU transfer speed even benefit? Or does the bootloader also need the other changes from SDK15+ to benefit from longer MTUs and DLE?&lt;br /&gt;2) Porting our application to SDK15.2 is probably quite a bit more work than just porting over our bootloader, so I&amp;#39;d really like to avoid going down that route if possible. So if our application is SDK14 with S132 v5.0.0, would there be any issues trying to use an SDK15.2 bootloader that must also use S132 v5.0.0?&lt;br /&gt;3) Related to 2, would there be any concerns about running an application based on SDK14 but a bootloader based on SDK15.2?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the SDK15 BLE DFU speed improvements be backported to an SDK14 bootloader?</title><link>https://devzone.nordicsemi.com/thread/157328?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 14:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4d71dfb-98c3-428e-b39c-fc026d8dd296</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are right that there are a lot of changes between SDK 14 and SDK 15. Particularly the bootloader was significantly modified, so unfortunately it is difficult to isolate all changes. DFU is typically not performed very often by the end customer so I suggest you consider sticking with the current bootloader. Alternatively, migrating to the full SDK 15.2 bootloader could be an option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>