<?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>After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47412/after-loading-latest-binary-into-chip-entire-flash-is-not-erased</link><description>Hello, 
 
 I am using Seeger for Flashing code and Debugging. I ported code from “flash_fstorage” example code to “ble_app_blinky”. I have few queries on write data into Flash. 
 
 
 Even after flashing nRF52832, entire Flash is not erased. Just before</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 May 2019 13:48:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47412/after-loading-latest-binary-into-chip-entire-flash-is-not-erased" /><item><title>RE: After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/thread/188311?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 13:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ffebb85-1aa9-4c07-a78f-5ffa2e224b58</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Sure, I though both are similar and raised in same query. I will raise it separately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/thread/188306?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 13:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b3dc63-950e-477d-a395-82dcd0fb2535</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If your original question is resolved, please verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1057._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Start a new thread for a new question!&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5773._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/thread/188299?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 13:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2d4f2af-5c9d-4b4e-8a55-1e119f741c3e</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Any inputs on above query.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/thread/187647?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 08:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11b5b744-de14-4fb5-b20f-e884bfa04754</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for your quick inputs. Please let me know your inputs on below query.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In &amp;ldquo;ble_app_blinky&amp;rdquo;, as part of wait_for_flash_ready(), I replaced power_manage() to idle_state_handle(). Is this fine. Whether both are same ?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;void wait_for_flash_ready(nrf_fstorage_t const * p_fstorage)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* While fstorage is busy, sleep and wait for an event. */&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (nrf_fstorage_is_busy(p_fstorage))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;idle_state_handle();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//power_manage();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/thread/187645?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 08:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7388a01-0ed0-4151-ae66-f2c211848a85</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if&amp;nbsp;SES has a setting to always erase the entire chip. Or to include additional sectors in a partial erase. You&amp;#39;ll have to search through the options and/or study the &lt;strong&gt;documentation&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Or ask Segger:&amp;nbsp;&lt;a href="https://forum.segger.com/"&gt;https://forum.segger.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Erasing takes a (relatively) long time, and wears out the Flash - so, in general, one would only do this when specifically necessary.&lt;/p&gt;
[quote userid="78085" url="~/f/nordic-q-a/47412/after-loading-latest-binary-into-chip-entire-flash-is-not-erased/187642"]in Segger status I am seeing &amp;quot;Erase&amp;quot;. Does not this erase entire Flash[/quote]
&lt;p&gt;No.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/thread/187642?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 08:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45d4b5cd-5c95-4378-9b7f-4d93afa21d53</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1) Also please let me know your inputs on query 2 in my above post.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) Yes, I am using Segger Embedded Studio.&lt;/p&gt;
&lt;p&gt;Only through below steps I am able to erase entire chip. Is this correct way.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; a) Target -&amp;gt; Connect J-Link&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; b) Target -&amp;gt; Erase All.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But in Segger status I am seeing &amp;quot;Erase&amp;quot;. Does not this erase entire Flash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1558080456930v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After loading latest binary into chip, entire Flash is not erased</title><link>https://devzone.nordicsemi.com/thread/187636?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 08:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6583f20-6800-4156-bf6c-4f23c36b88ab</guid><dc:creator>awneil</dc:creator><description>[quote userid="78085" url="~/f/nordic-q-a/47412/after-loading-latest-binary-into-chip-entire-flash-is-not-erased"]I am using Seeger for Flashing code [/quote]
&lt;p&gt;You mean Segger Embedded Studio?&lt;/p&gt;
&lt;p&gt;Segger also has a number of other tools for flashing code&lt;/p&gt;
[quote userid="78085" url="~/f/nordic-q-a/47412/after-loading-latest-binary-into-chip-entire-flash-is-not-erased"]Even after flashing nRF52832, entire Flash is not erased[/quote]
&lt;p&gt;Yes, that is normal behaviour.&lt;/p&gt;
&lt;p&gt;If you want to do a full chip erase, you have to do that manually - but remember that will also erase the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>