<?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>Bootloader code target size overwrites Pstorage allocation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13790/bootloader-code-target-size-overwrites-pstorage-allocation</link><description>SDK 9.0.0 sd s110 
 I want bootloader to store some persistent data at the APP DATA location. while going through the bootloader(dual_bank_ble_s110) source code, i noticed that it is registering two pages starting at 0x3F800 for persistent storage module</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 May 2016 11:12:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13790/bootloader-code-target-size-overwrites-pstorage-allocation" /><item><title>RE: Bootloader code target size overwrites Pstorage allocation</title><link>https://devzone.nordicsemi.com/thread/52704?ContentTypeID=1</link><pubDate>Fri, 13 May 2016 11:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61dd871-06c0-4253-8bee-7fccd803c921</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You will likely have to allocate more flash if you are adding code to the example as it tight already. But note that in addition to adjusting the start address you will also need to change the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds/dita/softdevices/s130/mbr_bootloader/mbr_sd_reset_behavior.html?cp=2_6_2_0_11_2"&gt;&lt;strong&gt;UICR.BOOTLOADERADDR&lt;/strong&gt;&lt;/a&gt; to reflect this new start address.  E.g., dfu_types.h -&amp;gt; #define BOOTLOADER_REGION_START 0x3A0C0 (start should ideally be page aligned).&lt;/p&gt;
&lt;p&gt;The error you saw should disappear if you subtract the size of the bootlaoder settings page from the allocated flash size:&lt;/p&gt;
&lt;p&gt;0x40000 - 0x3A0C0 - 0x400 = 0x5B40 so IROM1 start: 0x3A0C0 size: 0x5B40.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader code target size overwrites Pstorage allocation</title><link>https://devzone.nordicsemi.com/thread/52705?ContentTypeID=1</link><pubDate>Thu, 12 May 2016 11:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab72b202-129d-435f-a15a-6277dd6c76bf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, there are two separate pstorage instances in the bootlaoder, one for the bootloader settings page @ 0x3FC00 and the other one for the banked region(s). Note that the bootlaoder uses &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_pstorage.html?cp=4_0_0_3_19_3#pstorage_raw_mode"&gt;&lt;strong&gt;Pstorage RAW&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>