<?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>erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25157/erase-flash-memory-before-programing</link><description>Question1. 
 when programming Application, there is no request for erase memory.
why programming Bootloader requeset erase flash memory? how about Soft Device? 
 Question2. 
 I&amp;#39;m using nRF51. SDK11. 
 Can I program Application+BL+SD (merged to one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Oct 2017 08:43:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25157/erase-flash-memory-before-programing" /><item><title>RE: erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/thread/99093?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2017 08:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c87821c9-8d61-4407-bf0b-e3791c6740a4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Cool :) Usually you can find the start and end addresses in pstorage_platform.h &lt;a href="https://devzone.nordicsemi.com/question/53066/what-will-be-the-starting-address-of-pstorage-page-how-we-can-change-it/"&gt;This&lt;/a&gt; might also be of help to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/thread/99092?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2017 00:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36d78780-1f00-4e90-8548-3cc6049d7560</guid><dc:creator>Jeong Hyun Seok</dc:creator><description>&lt;p&gt;Yes, I tried, and it works! :-)
so I programmed Bootloader, SoftDevice, and Application, one by one with --sectorerase option&lt;/p&gt;
&lt;p&gt;It works! so I programmed new version of BL+APP+SD and still keep Pstorage memory info.
Thank you. :-)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;by the way, where can I find pstorage memory address to store things?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/thread/99090?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 14:02:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:352eaa4a-1740-474c-983b-8ff9adbf589e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Did you try?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/thread/99091?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 12:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:388dd28d-6b4f-47ad-860a-b932ea4d9daa</guid><dc:creator>Jeong Hyun Seok</dc:creator><description>&lt;p&gt;oh, this --sectorerase option  can work for SoftDevice and Bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/thread/99089?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 10:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad70ab7-ec26-42ef-9984-d2946bb84a03</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I recommend you to use nrfjprog directly, not nRFgo Studio.&lt;/p&gt;
&lt;p&gt;Then you can give --sectorerase as an argument. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog -f nrf52 --program s132_nrf52_5.0.0_softdevice.hex --sectorerase
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/thread/99087?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 13:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93fb1300-132a-4841-ac9e-cb2ff07154c8</guid><dc:creator>Jeong Hyun Seok</dc:creator><description>&lt;p&gt;sorry for late reply&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;in this post, I use nRFgo Studio.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;If I program Application, then not require erasing.&lt;/li&gt;
&lt;li&gt;I think this program erase memory before programming. (sector erase, I assume)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: erase Flash memory before Programing</title><link>https://devzone.nordicsemi.com/thread/99088?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 12:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cc62d0-8c7a-415d-8faf-c5a21bb0d63e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Which program are you using to program? What do you mean by &amp;quot;no request for erase memory&amp;quot;? Are you talking about an eraseall? Erasing the complete flash? What are you trying to achieve?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;What do mean by without remove pstorage page? A flash page that have been used an old application with pstorage? Do you mean DFU or normal programming?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>