<?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 DFU, Should you use fstorage or nrf_dfu_flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23776/secure-dfu-should-you-use-fstorage-or-nrf_dfu_flash</link><description>Within a buttonless DFU application should nrf_dfu_flash or fstorage be used to erase and write to flash? 
 SDK 13.0.0 - Soft device s132_nrf52_4.0.2_softdevice running on a nRF52832. 
 I want to store device specific information (like Serial Number</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jul 2017 11:50:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23776/secure-dfu-should-you-use-fstorage-or-nrf_dfu_flash" /><item><title>RE: Secure DFU, Should you use fstorage or nrf_dfu_flash</title><link>https://devzone.nordicsemi.com/thread/93516?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6109a7a1-fee3-4568-a90d-95342fbfd783</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That configuration instructs the bootloader to not erase some flash pages which are used by the Peer Manager to store bond information. Thus, the application can retain bond data after a DFU.
If you write to that area using fstorage you might end up corrupting the fds data.&lt;/p&gt;
&lt;p&gt;In short:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you don&amp;#39;t use Peer Manager, you can use that area as you wish.&lt;/li&gt;
&lt;li&gt;If use Peer Manager, increase DFU_APP_DATA_RESERVED to include more one flash page and write your data there.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU, Should you use fstorage or nrf_dfu_flash</title><link>https://devzone.nordicsemi.com/thread/93515?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 14:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2183bd7-700f-4524-bd4e-40bc1d287257</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If its just a serial number that is written to flash in the application then I would use fstorage as it has a smaller footprint than nrf_dfu_flash that wraps aroung fstorage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>