<?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>Buttonless DFU with: application + softdevice + bootloader. Application doesn&amp;#39;t boot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71300/buttonless-dfu-with-application-softdevice-bootloader-application-doesn-t-boot</link><description>Hello all, 
 
 We sell BLE devices with pre-programmed firmware, which has the ability to be remotely updated using the nordic buttonless DFU service based on a modified version of the secure bootloader. 
 
 Our customer wishes to use their own application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Feb 2021 11:59:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71300/buttonless-dfu-with-application-softdevice-bootloader-application-doesn-t-boot" /><item><title>RE: Buttonless DFU with: application + softdevice + bootloader. Application doesn't boot</title><link>https://devzone.nordicsemi.com/thread/293315?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 11:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3798b923-6d52-455b-bed0-f918d1acc6ca</guid><dc:creator>Edvin</dc:creator><description>[quote user="0x4141"]I am using sdk 17.0.1 and my client is using SDK 15.0.0.[/quote]
&lt;p&gt;&amp;nbsp;I recommend that you switch to 17.0.2, since the 17.0.1 is no longer public due to some bugs. The 17.0.2 is identical, except for the bugs, so your applications/bootloader should work without modifications.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Besides that, I see that SDK15.0.0 and SDK17.0.2 has the same flash start address for the bootloader, so did you change the start address for the bootloader?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="0x4141"]The start address is different. Is this a problem? Since we update the entire FW (bootloader + SD + APP) to that of our customer. So we just assumed that our old FW wouldn&amp;#39;t interfere. Or must the start address always be the same as of the original FW image that was programmed to the device in production?[/quote]
&lt;p&gt;&amp;nbsp;The issue is that the bootloader address is programmed into the UICR, and the bootloader doesn&amp;#39;t update this during runtime. Did you change the start address yourself? Or did the customer change theirs? If possible, the easiest fix would be that they use the same start address as yours, so if you increased the size, they can do to. If you decreased it, however, the customer may not be able to do the same. Let me know what the situation is.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="0x4141"]This is one of the things that confuse me: Is this expected behaviour? Or should it boot into the application? (which was transferred in the same DFU package)[/quote]
&lt;p&gt;&amp;nbsp;When the application is included in the same DFU image as the BL + SD, then it actually creates two DFU images. It will first update the SD + BL, and then the application when this is done. I don&amp;#39;t know what they use to perform the DFU, but if they are using a custom name, perhaps the DFU master is looking for something else? What are they using as the DFU master? Perhaps they can try to do the update in two parts, and when they update the application, they can specify what advertising name the DFU master should look for.&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: Buttonless DFU with: application + softdevice + bootloader. Application doesn't boot</title><link>https://devzone.nordicsemi.com/thread/293202?ContentTypeID=1</link><pubDate>Sat, 06 Feb 2021 14:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fca4dd3-ede6-4f81-b3eb-19b982719e0a</guid><dc:creator>0x4141</dc:creator><description>&lt;p&gt;I have been successfully using our bootloader for updating application before, but I have never tried updating bootloader + SD + APP in a single package.&lt;/p&gt;
&lt;p&gt;Yes, the device start advertising as bootloader, with the custom bootloader name implemented by our customer. So their bootloader manage to start after the SD + bootloader is transferred. This is one of the things that confuse me: Is this expected behaviour? Or should it boot into the application? (which was transferred in the same DFU package)&lt;/p&gt;
&lt;p&gt;The start address is different. Is this a problem? Since we update the entire FW (bootloader + SD + APP) to that of our customer. So we just assumed that our old FW wouldn&amp;#39;t interfere. Or must the start address always be the same as of the original FW image that was programmed to the device in production?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with: application + softdevice + bootloader. Application doesn't boot</title><link>https://devzone.nordicsemi.com/thread/293201?ContentTypeID=1</link><pubDate>Sat, 06 Feb 2021 12:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e368b88-aee6-474d-aa57-d8d4948dece9</guid><dc:creator>0x4141</dc:creator><description>&lt;p&gt;Thank you for this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try your suggestions and see how it goes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The SDK versions were wrong, I&amp;#39;m sorry for this, I am using sdk 17.0.1 and my client is using SDK 15.0.0. I have updated the original post and just wanted to comment on this to avoid confusion to any other reader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with: application + softdevice + bootloader. Application doesn't boot</title><link>https://devzone.nordicsemi.com/thread/292941?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 14:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57a8975c-3653-4334-93ab-ebc3b8ff65dd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you tested your bootloader with nrfutil? Do you make it work on your end? Do you make it work if you generate an application image using SDK5? Is the nrfutil version that you and the customer is using supporting SDK5?&lt;/p&gt;
&lt;p&gt;Is the bootloader start address the same in your bootloader and the customer&amp;#39;s bootloader?&lt;/p&gt;
&lt;p&gt;Let us start there. Let me know whether you have tried this yourself.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]As I understand it, the bootloader and SoftDevice are programmed first when using DFU and the application is programmed afterwards. How come only half of the process is successful?[/quote]
&lt;p&gt;Does the device start advertising as a DFU target after the softdevice + bootloader is transferred?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The SDKs you are using are quite old, so I don&amp;#39;t think the current versions of nrfutil are working with them. That is why I ask about whether or not you have tested it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>