<?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>usb secure bootloader behaviour</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58754/usb-secure-bootloader-behaviour</link><description>To the kind attention of Nordic support team, 
 I have got in here two pictures of flash. The first one it is after installing bootloader and settings, softdevice and application. 
 The second one it is after having done a dfu update of softdevice and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Mar 2020 15:24:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58754/usb-secure-bootloader-behaviour" /><item><title>RE: usb secure bootloader behaviour</title><link>https://devzone.nordicsemi.com/thread/238573?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 15:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67fa0951-9f85-4713-a36e-b9f6b7bec3b8</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;Thank you for your kindness.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb secure bootloader behaviour</title><link>https://devzone.nordicsemi.com/thread/238568?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 14:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f989bdb2-84ae-4239-9778-b5dcc0921b08</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;I was wandering if the application copy starting at 0x61000, and created after a usb dfu updating is a safety copy made by bootloader&lt;/p&gt;&lt;p&gt;to be able to recover in case of power failure.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, it is. The bootloader will temporarily store the new application and copy it in place after it has successfully been received and validated (aka dual banking).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;Also I wanted ask if, being thins like that, we always have to leave free space in flash whose dimension&lt;/p&gt;&lt;p&gt;is at least application size, in order to allow the copy process? What happens shouldn&amp;#39;t be enough free space in flash memory? Does dfu fails?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Dual banking of application updated is optional (but can be configured to be mandatory). So if there is no space for dual bank updates, the application would be deleted before starting the update process, so that no additional flash space is needed. This has the downside that a device will stay in DFU mode if an update is not completed, instead of going back to normal operation. This is not a big issue for most products though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>