<?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 secure bootloader loads softdevice in application area</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25940/dfu-secure-bootloader-loads-softdevice-in-application-area</link><description>Hi, 
 I used command: 
 nrfutil pkg generate --softdevice s130_nrf51_2.0.1_softdevice.hex --hw-version 51 --key-file private.pem sd130v2.0.1_update.zip
 
 to generate package for only softdevice update (nrfutil version 3.3.2). Next I used nRF Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Oct 2017 09:37:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25940/dfu-secure-bootloader-loads-softdevice-in-application-area" /><item><title>RE: DFU secure bootloader loads softdevice in application area</title><link>https://devzone.nordicsemi.com/thread/102186?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 09:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db329712-6b95-4c7a-a82c-cbd858f46e2e</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Thanks for the answer Bjørn :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU secure bootloader loads softdevice in application area</title><link>https://devzone.nordicsemi.com/thread/102189?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 08:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35b5716f-625f-47c3-a621-2363fe39c801</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Wojtek, you can read about the update procedure &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/lib_bootloader_dfu_banks.html?cp=4_0_3_3_5_1_2"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In your specific case the available flash for storing the new SoftDevice in Bank 1 alongside the application will be Bootloader Start Address - Address of first flash page after Application End Address`--&amp;gt; 0x37C00 - 0x29000 = 0xEC00 = 59kB. The S130 v2.0.x needs 104kB so the bootloader is forced to use the combined space of Bank0 and Bank1, i.e. Bootloader Start Address - Application Start Address( 0x37C00 - 0x1B000 = 0x1CC00 = 115 kB).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU secure bootloader loads softdevice in application area</title><link>https://devzone.nordicsemi.com/thread/102187?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 15:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10bca018-00c3-4a21-a425-f125f6cb2a9a</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I have nRF51 QFAC (32 kB flash).&lt;/p&gt;
&lt;p&gt;Memory organization:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;0 - 0x1B000: s130,&lt;/li&gt;
&lt;li&gt;0x1B000 - 0x37C00: my application (but program ends at 0x28400 according to output from nrfjprog),&lt;/li&gt;
&lt;li&gt;0x37C00 - 0x3CC00: DFU secure bootloader,&lt;/li&gt;
&lt;li&gt;0x3CC00 - 0x3D000: bootloader settings,&lt;/li&gt;
&lt;li&gt;0x3D000 - 0x40000: untouchable piece of garbage.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So, as I understand, when I&amp;#39;m updating SD, it is written into application area if I have not enough memory? Where should I have this free space? How much is it &amp;quot;enough&amp;quot;? Is there any place, where may I read about this DFU behaviour?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU secure bootloader loads softdevice in application area</title><link>https://devzone.nordicsemi.com/thread/102188?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 14:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf317e99-1bf8-4b95-babb-45f3cf47bc36</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which nRF51 variant are you using? If there is not enough flash space to store both the application and the new SoftDevice image in addition to the bootloader and the old SoftDevice, then the application will be erased and the new softdevice will be placed in the application region, i.e. bank 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>