<?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 bootloader -- region FLASH overflowed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48142/dfu-bootloader----region-flash-overflowed</link><description>Module: 
 ilumi H52 BLE module (nRF52832) 
 
 
 SDK: 
 nRF5_SDK_15.3.0_59ac345 
 
 
 Softdevice: 
 132_nrf52_6.1.1_softdevice.hex 
 
 
 Compiler: 
 gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (15:7-2018-q2-4) 
 
 
 
 My</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jun 2019 12:33:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48142/dfu-bootloader----region-flash-overflowed" /><item><title>RE: DFU bootloader -- region FLASH overflowed</title><link>https://devzone.nordicsemi.com/thread/191357?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 12:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0526c42-9fad-41f7-b504-d7a3451ae697</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to move the start address of the bootloader down so that you can accommodate the increased size. Since you use GCC you do this by adjusting the ORIGIN and LENGTH in the following line in the linker script (typically &amp;lt;SDK&amp;gt;\examples\dfu\secure_bootloader\pca10040_ble\armgcc\secure_bootloader_gcc_nrf52.ld):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;examples\dfu\secure_bootloader\pca10040_ble\armgcc\secure_bootloader_gcc_nrf52.ld&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should have the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_bootloader.html?cp=5_1_3_5_0_7#lib_bootloader_memory"&gt;memory layout&lt;/a&gt;&amp;nbsp;in mind when you do this. Essentially the bootloader is close to the end of the flash, but you must reserve two pages after that (MBR params and bootloader settings). You also need to erase the SoftDevice before you program the bootloader again, as the bootloader .hex will contain the new bootloader start address that will be programmed at the end of the MBR page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>