<?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>Bootloader only update with DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4395/bootloader-only-update-with-dfu</link><description>I have added the DFU service to our own project. Normal application updates work perfectly and even the update of bootloader and softdevice is fine. 
 In a new case we had to update the bootloader only. The resulting behavior is a bit odd: 
 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Dec 2014 09:50:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4395/bootloader-only-update-with-dfu" /><item><title>RE: Bootloader only update with DFU</title><link>https://devzone.nordicsemi.com/thread/15598?ContentTypeID=1</link><pubDate>Fri, 26 Dec 2014 09:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abdeb4fc-f03c-4e2d-82af-c03ca8586cb9</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;The SDK 7.1 fixes this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader only update with DFU</title><link>https://devzone.nordicsemi.com/thread/15597?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2014 16:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cdf62d2-9e97-40b0-9cdc-6ae37123bb44</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s acknowledged as a bug in our DFU example in SDK v7.0. The bug happens when update only bootloader. The symptom is as Adrian described.
We have implemented a fix and it will be included in SDK v7.1 that will be release in the next few days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader only update with DFU</title><link>https://devzone.nordicsemi.com/thread/15595?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2014 14:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0a9e7a5-fc3b-4d7e-981d-99d998293f64</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Thank you for the links. The guide &amp;quot;how to debug bootloader&amp;quot; will be helpfull.&lt;/p&gt;
&lt;p&gt;The description in the Softdevice Specification sounds good to me, but my behavior when updating only the bootloader is different. The bootloader reboots to application after the update of the bootloader (bootloader.hex). After a power-cycle the bootloader won&amp;#39;t start the application ind remains in the bootloader. Only an update of the application seams to complete the update.&lt;/p&gt;
&lt;p&gt;I investigated this issue with the guide for debugging the bootloader and found a misbehaviour of the SDK code when updating the bootloader only.&lt;/p&gt;
&lt;p&gt;Setup used:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SDK 6.1&lt;/li&gt;
&lt;li&gt;S110 7.0&lt;/li&gt;
&lt;li&gt;Bootloader (nrf51822\Board\nrf6310\device_firmware_updates\bootloader\arm) -&amp;gt; modified for debugging (&lt;a href="https://devzone.nordicsemi.com/question/18039/bootloader-debugging/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Application (nrf51822\Board\pca10001\s110\ble_app_hrs\arm)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Steps to reproduce the failure:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Program the softdevice, the bootloader and the application&lt;/li&gt;
&lt;li&gt;Download the ble_app_hrs.hex as application with the nRF51 Toolbox&lt;/li&gt;
&lt;li&gt;Restart the device with pressed button to enter DFU mode in bootloader&lt;/li&gt;
&lt;li&gt;Download a new bootloader.hex as bootloader with the nRF51 Toolbox&lt;/li&gt;
&lt;li&gt;When the bootloader leaves the function &amp;quot;bootloader_dfu_start&amp;quot; the bootloader settings are set to -&amp;gt; Bank0: BANK_VALID_APP / Bank1: BANK_VALID_BOOT&lt;/li&gt;
&lt;li&gt;The following check &amp;quot;bootloader_app_is_valid&amp;quot; returns true because Bank0 is BANK_VALID_APP and the application gets started&lt;/li&gt;
&lt;li&gt;After a later reboot the settings are still set to -&amp;gt; Bank0: BANK_VALID_APP / Bank1: BANK_VALID_BOOT&lt;/li&gt;
&lt;li&gt;The test &amp;quot;bootloader_dfu_sd_in_progress&amp;quot; returns true because Bank1 is BANK_VALID_BOOT&lt;/li&gt;
&lt;li&gt;In the function &amp;quot;bootloader_dfu_sd_update_finalize&amp;quot; both banks are set to BANK_INVALID_APP&lt;/li&gt;
&lt;li&gt;The bootloader now remians in bootmode because the valid app has been invalidated&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader only update with DFU</title><link>https://devzone.nordicsemi.com/thread/15596?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2014 14:15:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb76cf63-27cd-4954-85a1-cba023e6f470</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you read through the Bootloader chapter in the S110 Softdevice Specification v1.3, in order to know what happens after the bootloader+softdevice hex file is downloaded to the nRF51.&lt;/p&gt;
&lt;p&gt;You could debug the bootloader in order to better understand what is going on. The guide on how to enable bootloader debug is &lt;a href="https://devzone.nordicsemi.com/question/18039/bootloader-debugging/"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>