<?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>Shifting Bootloader area using BLE DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47814/shifting-bootloader-area-using-ble-dfu</link><description>Hello 
 
 I have a firmware with Softdevice S132 for NRF52 consists of main application (0x1F000 len:0x56000 ) and Bootloader (0x75000 len:0x9000). What I&amp;#39;m trying to do is adding more space for the existing App using a page from the Bootloader, So I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2019 09:19:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47814/shifting-bootloader-area-using-ble-dfu" /><item><title>RE: Shifting Bootloader area using BLE DFU</title><link>https://devzone.nordicsemi.com/thread/189819?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 09:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0e23c3d-3e65-41c0-95a8-00ec724d7d30</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Yahya Tawil"]can you expect what is wrong in my case ?[/quote]
&lt;p&gt;The code snippet in the original question seems sensible, but there is probably some detail that I am not spotting. The procedure is proven to work, as shown in detail in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18199/dfu---updating-from-legacy-sdk-v11-0-0-bootloader-to-secure-sdk-v12-x-0-bootloader/70272#70272"&gt;this post&lt;/a&gt; (though for an older SDK).&lt;/p&gt;
[quote user="Yahya Tawil"]Yes, I saw it, but I was looking for the details you mentioned : ) if I can get them somewhere in the documentation or as a code (it&amp;#39;s closed source as I know).[/quote]
&lt;p&gt;The MBR is closed source as you write, but I will request that the documentation be expanded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shifting Bootloader area using BLE DFU</title><link>https://devzone.nordicsemi.com/thread/189610?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 11:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58157a65-e100-4884-98a9-d3129f9a7b4d</guid><dc:creator>Yahya Tawil</dc:creator><description>&lt;p&gt;Thanks Einar for the interesting note about how new MBR get/store Bootloader address.&lt;/p&gt;
&lt;p&gt;I use SDK V13 and SD132 V4.&lt;/p&gt;
&lt;p&gt;So as my MBR version should uses NRF_UICR-&amp;gt;NRFFW[0] value to jump to bootloader, can you expect what is wrong in my case ? Note: I made sure 100% that erasing and updating the NRFFW[0] is working by doing that and check the values in normal App.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/47814/shifting-bootloader-area-using-ble-dfu/189522"]You can find the MBR documentation&amp;nbsp;under &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/mbr_bootloader/mbr_bootloader.html?cp=3_4_1_0_11"&gt;Master boot record and bootloader&lt;/a&gt;&amp;nbsp;in the SoftDevice specification.[/quote]
&lt;p&gt;Yes, I saw it, but I was looking for the details you mentioned : ) if I can get them somewhere in the documentation or as a code (it&amp;#39;s closed source as I know).&lt;br /&gt;&lt;br /&gt;Note: I think this page need to have an update about bootloader address &lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_bootloader_dfu_process.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_bootloader_dfu_process.html&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shifting Bootloader area using BLE DFU</title><link>https://devzone.nordicsemi.com/thread/189522?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 09:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51631908-2ca1-440c-9af6-dc3748ffbcb4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]So am I miss something, for example the MBR in Softdevice uses the old bootloader address, or what? BTW from where the MBR knows the Address the Bootloader ?[/quote]
&lt;p&gt;Until recently, the MBR found the bootloader address by checking&amp;nbsp;NRF_UICR-&amp;gt;NRFFW[0]. If it were set (not all FF), the MBR would jump to the bootloader. However, the MBR shipped with the newest SoftDeices (6.1.1) which was shipped with SDK 15.3 no longer use&amp;nbsp;NRF_UICR-&amp;gt;NRFFW[0] but instead places the bootloader start address at the end of the MBR page. This means it is no longer possible to&amp;nbsp;change the bootloader start address by deleting and rewriting a modified UICR page. (this is only half-true, as it is still used if the address is not set within the MBR, for backward compatibility).&amp;nbsp; Which SDK and SoftDevice version do you upgrade to and from?&lt;/p&gt;
[quote user=""]and is there any detailed documentation/code for MBR ?[/quote]
&lt;p&gt;You can find the MBR documentation&amp;nbsp;under &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/mbr_bootloader/mbr_bootloader.html?cp=3_4_1_0_11"&gt;Master boot record and bootloader&lt;/a&gt;&amp;nbsp;in the SoftDevice specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>