<?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>Prevent APP Data erase while flashing new firmware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33719/prevent-app-data-erase-while-flashing-new-firmware</link><description>I&amp;#39;m gonna store some initial data in flash, this data must be saved permanently (I need about 1024 bytes. it&amp;#39;s 1 page), so how can I protect this flash area with my data (I use the last page for this) not to be erased while I reflash new firmware. Usually</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Apr 2018 15:00:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33719/prevent-app-data-erase-while-flashing-new-firmware" /><item><title>RE: Prevent APP Data erase while flashing new firmware</title><link>https://devzone.nordicsemi.com/thread/129822?ContentTypeID=1</link><pubDate>Wed, 25 Apr 2018 15:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d375060-d385-4988-93ac-97c3fc6f6592</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;As far as I know there is no way to &amp;quot;save the data permanently&amp;quot;, so that it is protected from an erase.&lt;/p&gt;
&lt;p&gt;When using, i.e &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html" target="_blank" rel="noopener noreferrer"&gt;nrfjprog&lt;/a&gt;, you could use the sectorerase option when programming your device.&lt;/p&gt;
&lt;p&gt;Sectorerase: If &lt;code&gt;--sectorerase&lt;/code&gt; is given, only the targeted non-volatile memory pages, excluding UICR, is erased.&lt;/p&gt;
&lt;p&gt;Read more about the available commands &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe_reference.html?resultof=%22%6e%72%66%6a%70%72%6f%67%22%20"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Let me know if you have further questions.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>