<?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>How to keep the data stored in flash after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15494/how-to-keep-the-data-stored-in-flash-after-dfu</link><description>Hi all: 
 I stored some settings in flash in the address 0x00077000 and this address is got by the function of pstorage_register(). 
 However this area will be erased by my DFU, the DFU is refer the sample code of the project of dual_bank_ble_s132 in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Aug 2016 12:33:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15494/how-to-keep-the-data-stored-in-flash-after-dfu" /><item><title>RE: How to keep the data stored in flash after DFU</title><link>https://devzone.nordicsemi.com/thread/59188?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 12:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1c8d9d1-b940-4b68-ae8e-6bdbe9b6a954</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;As @adrian says, if there is a valid application, softdevice and Bootloader, and you update the bootloaderonly, then you will branch to the application and &lt;strong&gt;not&lt;/strong&gt; the bootloader after the DFU is finished.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to keep the data stored in flash after DFU</title><link>https://devzone.nordicsemi.com/thread/59187?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 06:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43449cb8-5b5d-4657-b2cc-38a55bc4097f</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Hi,
If i understand you right you updated the bootloader only over DFU. Why should it afterwards enter the DFU mode on startup? Your application probably is still valid and the bootloader should start into the application.
Adrian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to keep the data stored in flash after DFU</title><link>https://devzone.nordicsemi.com/thread/59186?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 05:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed373e3c-1558-46f7-bea2-ff9e641081cb</guid><dc:creator>Jorgewu</dc:creator><description>&lt;p&gt;Hi ,
Yes ,the settings can be kept after modified DFU_APP_DATA_RESERVED.
However, it  cause new problem.
If I just update this new DFU without others (Application and SoftDevice).
My device will not enter DFU mode after update this DFU..
Is any item needed be modified?&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to keep the data stored in flash after DFU</title><link>https://devzone.nordicsemi.com/thread/59185?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 16:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e831d045-fb63-47d4-9142-7f3ba3591883</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bootloader implementation in the example of the SDK splits the full area between softdevice end and bootloader start into two sections (dual DFU). The upper section is erased at the beginning of the DFU to store the new firmware. This is the reason your data is erased. To preserve a user data region below the bootloader the define for DFU_APP_DATA_RESERVED should be modified.&lt;/p&gt;
&lt;p&gt;In your case you should preserve at least three times the CODE_PAGE_SIZE to prevent erasing of the data above 0x77000.&lt;/p&gt;
&lt;p&gt;Regards Adrian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>