<?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>secure bootloader preserve custom data in flash during DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37969/secure-bootloader-preserve-custom-data-in-flash-during-dfu</link><description>I noticed that the secure bootloader by default protects bond information during FOTA. In earlier SDK versions there was something called preserved pages right below the bootloader in memory but I can&amp;#39;t find it in SDK v15.1. 
 How do I preserve my custom</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Aug 2018 08:29:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37969/secure-bootloader-preserve-custom-data-in-flash-during-dfu" /><item><title>RE: secure bootloader preserve custom data in flash during DFU</title><link>https://devzone.nordicsemi.com/thread/146669?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 08:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9557b5d7-9439-4da4-9ea1-8e808ce4ab84</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The size of each bond can varya byt, but a typical bond with one CCCD requires 38 words (152 bytes). This means that you need at least 3 FDS virtual pages (assuming 1024 words per page) for data in order to get abot 80 bonds, so you need to set 4 in total. If you need to store additional data (you wrote 2 pages), then it totals to 6 pages.&lt;/p&gt;
&lt;p&gt;To achieve this, set FDS_VIRTUAL_PAGES in the projects sdk_config.h to 6 and set&amp;nbsp;DFU_APP_DATA_RESERVED in nrf_dfu_types.h to resolve 6 pages as well (so that the bootloader stays away).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader preserve custom data in flash during DFU</title><link>https://devzone.nordicsemi.com/thread/146548?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 14:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c974588e-8063-4ad7-aa7b-4d8eb587ff0c</guid><dc:creator>vist</dc:creator><description>&lt;p&gt;Thank you for your answer. I have some follow up questions.&lt;/p&gt;
&lt;p&gt;If I want to be able to have about 80 bonds simultaneously I need all those three pages for bond information according to&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34879/flash-memory-and-bonding-data-from-peer-manager"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/34879/flash-memory-and-bonding-data-from-peer-manager&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What do I need to change in order to add 2 pages of personal data to be stored by the FDS in addition to changing the DFU_APP_DATA_RESERVED?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader preserve custom data in flash during DFU</title><link>https://devzone.nordicsemi.com/thread/146509?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 12:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4597f16-76ab-45cd-9f1a-c98a82929178</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can reserve more flash pages by modifying the definition of&amp;nbsp;&lt;code&gt;DFU_APP_DATA_RESERVED&lt;/code&gt; in nrf_dfu_types.h. By default, 3 pages is set aside, which matches the 3 pages typically used for FDS in most BLE examples in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>