<?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>Protect Peer Manager encryption keys from DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15531/protect-peer-manager-encryption-keys-from-dfu</link><description>I have an application that bonds to mobile devices and encrypts the connection on both Android and iOS. What I am noticing though, is that after each time I use the DFU to update the application, all the encryption keys are lost. 
 On Android, this isn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2016 11:26:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15531/protect-peer-manager-encryption-keys-from-dfu" /><item><title>RE: Protect Peer Manager encryption keys from DFU</title><link>https://devzone.nordicsemi.com/thread/59308?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 11:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3215a89-9a9c-4c3c-af02-4b6d0588c868</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You can configure the bootloader to retain the bonding information, i.e. not erase the flash pages where it is stored, by setting the &lt;code&gt;DFU_APP_DATA_RESERVED&lt;/code&gt; in &lt;code&gt;dfu_types.h&lt;/code&gt; to the required number of bytes, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_memory_appdata.html?resultof=%22%72%65%74%61%69%6e%22%20%22%62%6f%6e%64%69%6e%67%22%20%22%62%6f%6e%64%22%20"&gt;this&lt;/a&gt; Infocenter page.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Protect Peer Manager encryption keys from DFU</title><link>https://devzone.nordicsemi.com/thread/59307?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 06:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba3117aa-1d13-4444-95ec-b6ab113a257d</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Using the &amp;quot;fds&amp;quot; module which again utilizes the &amp;quot;fstorage&amp;quot; module in the nRF5 SDK (from version 11) you can store data in flash.&lt;/p&gt;
&lt;p&gt;Once this data is stored in flash you need to ensure that the bootloader does not use/erase/overwrite the flash pages where you have stored the encryption keys when performing a DFU.&lt;/p&gt;
&lt;p&gt;As far as I can remember you can do this by modifying the file &amp;quot;pstorage_platform.h&amp;quot; to not use the same address space as the &amp;quot;fstorage&amp;quot; module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>