<?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>Persistent data lost after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8739/persistent-data-lost-after-dfu</link><description>I use the persistent storage manager for saving some calibration parameters. It seems to work ok - I can power off/on, and the values are still there. 
 However, after I perform a firmware update, either OTA by using the DFU app or just using jlink all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Aug 2015 12:06:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8739/persistent-data-lost-after-dfu" /><item><title>RE: Persistent data lost after DFU</title><link>https://devzone.nordicsemi.com/thread/32052?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 12:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6a5090-04da-4019-9c60-036cb150dbc8</guid><dc:creator>peterh</dc:creator><description>&lt;p&gt;The default bootloader doesn&amp;#39;t preserve space for app data, i.e. DFU_APP_DATA_RESERVED = 0. Guess I&amp;#39;ll have to build one myself - thanx for the useful pointers to documents etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Persistent data lost after DFU</title><link>https://devzone.nordicsemi.com/thread/32051?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 11:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c37c3621-0436-4586-bdb9-b2f9bbb0e0e0</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi peterh&lt;/p&gt;
&lt;p&gt;Perhaps the bootloader is overwriting your application data that you store in flash. To prevent that, you need to consider where the bootloader is writing its data and preserve space for application data in bootloader settings, i.e. in the dfu_types.h -&amp;gt; DFU_APP_DATA_RESERVED.&lt;/p&gt;
&lt;p&gt;For realizing how the bootloader operates exactly, watch &lt;a href="https://devzone.nordicsemi.com/blogs/683/a-quick-presentation-on-how-nrf51-dfu-works/"&gt;this video&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To realize better how data is placed in flash during bootloader update, look at &lt;a href="https://devzone.nordicsemi.com/question/30622/what-is-role-of-bootloader/?answer=30678#post-id-30678"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Further bootloader info is given on &lt;a href="https://devzone.nordicsemi.com/tutorials/9/setting-up-device-firmware-updatedfu-on-the-nrf51-/"&gt;this thread&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>