<?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>DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75331/dfu-upgrade-of-only-bootloader-not-softdevice</link><description>I am in the situation that I have 1000+ deployed devices with a buggy bootloader in a production environment. The current application version triggers this bug, which means that as soon as the bootloader is entered it crashes and the application is started</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2022 15:08:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75331/dfu-upgrade-of-only-bootloader-not-softdevice" /><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/355865?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 15:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44fab45c-c2b2-499a-8375-1cac8090626b</guid><dc:creator>emb_dev</dc:creator><description>&lt;p&gt;Hi, thanks for the quick reply!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try the unpack and repack approach as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, your hack to nrfutil looks promising!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/355822?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 13:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b87574f1-9458-4a08-b565-bfa6916da1da</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Hi, I have posted more information in another ticket:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84879/feature-request-please-allow-app-bl-dfu-upgrades-in-nrfutil"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/84879/feature-request-please-allow-app-bl-dfu-upgrades-in-nrfutil&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the mean time I have also hacked nrfutil to be able to create APP+BL packages, it was surprisingly easy. See &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/pull/371"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/pull/371&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I actually use my own tool &amp;quot;nrfdfu&amp;quot; (&lt;a href="https://github.com/infsoft-locaware/nrfdfu"&gt;https://github.com/infsoft-locaware/nrfdfu&lt;/a&gt;) for the upgrade, but I also tried nrfutil before. Has been a long time since I tried with the Android app, sorry.&lt;/p&gt;
&lt;p&gt;I did not change the manifest file and I unpacked and repacked the .zip file under Linux.&lt;/p&gt;
&lt;p&gt;Hope that helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/355816?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 12:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad2a7d5-2b04-4f86-9235-f8a7d01bd24e</guid><dc:creator>emb_dev</dc:creator><description>&lt;p&gt;Hi Bruno Randolf,&lt;/p&gt;
&lt;p&gt;I am facing a similar task where I need a BL+APP OTA DFU and was happy to find your post. I tried the approach you described and packed the BL only .dat and .bin into the .zip package with APP+SD+BL and renamed them. But using the nrfConnect app on an Android phone, the Device got disconnected after the BL update and the phone was stuck within the DFU process.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you change the manifest.json file in the .zip file? Did you unpack the .zip file and repacked it or did the manipulation with a tool like 7-zip n the packed state?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/311236?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 10:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3200e78-fd5d-4dc6-87fa-303da5d7d3ed</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Just for reference I was able to manually create a APP+BL DFU package by manipulating the ZIP files and copying the .bin and .dat file from a BL only package to a APP+SD+BL package as sd_bl.bin and sd_bl.dat. Then repacked the ZIP and it now contains APP+BL. The tools (nrfutil and &lt;a href="https://github.com/infsoft-locaware/nrfdfu)"&gt;github.com/.../nrfdfu)&lt;/a&gt; don&amp;#39;t have a problem updating this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/311049?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 12:29:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5080dfab-64d2-4f3f-8dbc-6c6e9a2dd538</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Exactly, it wouldn&amp;#39;t affect the bootloader at all, just the surrounding tools. As devices with smaller flash like the 52810 are available, where SD upgrades are not feasible, I think this feature gets more important.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310981?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 10:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abae106c-327f-4062-a705-66493dced097</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not sure why that decision was made, but most likely it was because it did not seem like a important feature, and keeping the BL as small as possible is a priority. Note that actually, BL+SD+APP is also not supported by the bootloader directly, but by the surrounding tools. Upgrade is in fact split in two there as well, even though it is in a single .zip package.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310960?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 09:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc1cf355-547b-48e0-b7a4-3779394cedd2</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Why is this not supported? As far as I can see it is exactly the same as a BL+SD update followed by a APP update, only without the SD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310958?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 09:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:367b21ac-6fe8-4fce-9d82-d1c83bbafcef</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. APP+BL is not supported though, and not possible. If you are making a app for your end customers to use in the field you could integrate this so that the operation looks like a single operation from the GUI user perspective, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310938?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 07:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbd3def1-e072-43e2-bae7-b15f3dac4474</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Yes, unfortunately...&lt;/p&gt;
&lt;p&gt;Another issue is the upgrade of APP+BL: That would be really useful to upgrade older versions. It should work the same way as APP+SD+BL updates, just without SD. The BL is updated first and then the application in one go. If we have to update BL first and then reconnect to MAC address + 1 to separately upgrade the APP that gets unmanageable really quickly if you have many devices in an environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310778?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 13:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfa4b6e7-d092-419c-9837-0e0a558a18a5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Then I suspect the only remaining option is to access the SWD pins and program using a debugger, though that may not be a real option for devices in the field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310630?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 07:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51208cfb-c4ea-4bbb-b8e3-25631fead0eb</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Thank you - That&amp;#39;s a very good idea! My bootloader supports button pin 16, GPREGRET and buttonless. But unfortunately P0.16 is not accessible from the outside. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310531?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 15:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1066c4f8-1fcf-46b3-a64b-7a5cccce5544</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. The primary issue here is entering DFU mode without the WDT resetting the bootloader, then. One obvious possibility comes to mind, though it might not be possible. Which methods does the bootloader support for entering DFU mode? I ask because after a WDT reset, the WDT is also reset, i.e. it is disabled. So if you can start the bootloader immediately after a WDT reset without the app running first (and enabling the WDT), that could be a workaround. For instance if you have a button or pin that can be asserted during bootup to enter DFU mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310519?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 14:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b28f302-a4d2-4cd7-aa80-78dd7118fae1</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Thank you for your answer!&lt;/p&gt;
&lt;p&gt;I use an adapted version of the secure bootloader from the SDK, but I have introduced a bug when WDT is activated by the application. The current application uses WDT so the bootloader crashes every time I enter it. So there is no way to update neither APP or BL. I think this case is hopeless...&lt;/p&gt;
&lt;p&gt;I use the BLE transport. The flash layout is single bank and there is not enough space on nRF52810 to update the BL+SD...&lt;/p&gt;
&lt;p&gt;I wonder why the bootloader + application combination is not allowed, as that would help in this case, when I upgrade older versions. As you said I have to update BL first and then the application, but it would be good to be able to do that in a single command as with APP+SD+BL upgrades.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310424?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 12:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc13c81a-2308-493f-b804-5190ca30c37d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a few questions in order to understand more:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What bootloader have you flashed on the device and what changes have you made?&lt;/li&gt;
&lt;li&gt;Which transport do you use (BLE or UART)?&lt;/li&gt;
&lt;li&gt;What does your flash layout look like?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Generally, there is no problem upgrading just the bootloader without upbraiding the SoftDevice, as long as the new bootloader is built for the same SoftDevice. However, in order to support bootloader updates you must have enough free space in the application are to temporarily store the bootloader, and you must have a MBR params&amp;nbsp;page. If either of these two are missing, bootloader update is not possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfutil does allow generating a upgrade image of the bootloader only, and that is also supported by the nrF5 SDK bootloader. The only combination that is not allowed is bootloader + application, so in this case you need to use two separate upgrade images and to one after the other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310419?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 11:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c791140-62fa-45e0-8d66-9a0930ac11ff</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;actually this is not an issue where anyone could help, so please ignore or delete this ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310410?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 11:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3438889-e34e-4795-8e68-40880197cc2c</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;actually the problem is that in the current state I can not do any upgrades at all&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Upgrade of only Bootloader (not SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/310405?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 11:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27784d1b-c4c7-4885-85cd-5b66a7055917</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Okay sorry, I see BL only updates are possible, but why not BL+APP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>