<?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>What will happen if the bootloader DFU failed?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76982/what-will-happen-if-the-bootloader-dfu-failed</link><description>Dear friends, 
 We want to update the bootloader in our project. I have read the tutorial about the DFU process from here &amp;quot; Dual-bank and single-bank updates &amp;quot;. I have some questions about this DFU process, as below, 
 a) &amp;quot; After validation, the new SoftDevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Jul 2021 07:58:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76982/what-will-happen-if-the-bootloader-dfu-failed" /><item><title>RE: What will happen if the bootloader DFU failed?</title><link>https://devzone.nordicsemi.com/thread/318352?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 07:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39d55606-0093-46ea-82b3-3f58add5b136</guid><dc:creator>oplinux</dc:creator><description>&lt;p&gt;Thank you so much, I will read the documentation you mentioned above,thanks agin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What will happen if the bootloader DFU failed?</title><link>https://devzone.nordicsemi.com/thread/318350?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 07:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5ed17af-41cd-41c1-9b13-24fdef7967b4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The closest you get in the documentation is &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/mbr_bootloader/mbr_sd_reset_behavior.html"&gt;Master boot record and SoftDevice reset procedure&lt;/a&gt;&amp;nbsp;within the MBR doc, which states: &amp;quot;&lt;em&gt;If an in-system bootloader update procedure is in progress: The in-system update procedure continues its execution.&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Other than that, this is not documented anywhere in detail, unfortunately. You can the other&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/mbr_bootloader/mbr_bootloader.html"&gt;information about the MBR in the Softdevice specification&lt;/a&gt;, including the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group__nrf__mbr__api.html"&gt;API doc&lt;/a&gt;. Specifically the bootloader copying is done using the&amp;nbsp;SD_MBR_COMMAND_COPY_BL command. The way this works is that the MBR writes the command and state to the MBR params page, which is the second to last page, between the end of the bootloader and the bootloader settings page. This is persistent and allows the MBR to keep track of the state between resets and possible power cycles etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What will happen if the bootloader DFU failed?</title><link>https://devzone.nordicsemi.com/thread/318319?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 01:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73abe047-564a-46bf-85a5-a5728c174b08</guid><dc:creator>oplinux</dc:creator><description>&lt;p&gt;Thank you so much Einar.&lt;/p&gt;
&lt;p&gt;The mechanism is so clever.&lt;/p&gt;
&lt;p&gt;Could you tell me which tutotial has detailed introduce about this process &amp;quot;Bootloader and SoftDevice updates are always dual bank, and the copying itself is handled by the MBR&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What will happen if the bootloader DFU failed?</title><link>https://devzone.nordicsemi.com/thread/318210?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 12:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be16f816-e4b7-480e-9bae-4447f1b214f1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Who is responsible for the process of copying the bootloader and SoftDevice to replace the old one?[/quote]
&lt;p&gt;Bootloader and SoftDevice updates are always dual bank, and the copying itself is handled by the MBR, which itself is never updated.&lt;/p&gt;
[quote user=""]When we copied the new bootloader to replace the&amp;nbsp; old one, the copy process breaked by power-off,&amp;nbsp; will the DFU process recover when reset ?[/quote]
&lt;p&gt;If a reset happens during copying, the MBR will see that the bootloader update was not completed and it will continue to copy it in place. This mechanism is safe in the sense that there is never a time where a reset will brick the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>