<?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>flash erase in fstorage &amp;amp; FDS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29479/flash-erase-in-fstorage-fds</link><description>Hi guys, 
 I am developing a appilication using nrf51822 using SDK 11. I am trying to use Fstorage and FDS to store data. I need this data to be updated frequently. As I awared, the flash can only be erase and write for 10000 times. Since I need to update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jan 2018 14:17:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29479/flash-erase-in-fstorage-fds" /><item><title>RE: flash erase in fstorage &amp; FDS</title><link>https://devzone.nordicsemi.com/thread/117198?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 14:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5153deaf-7914-409e-afb2-7dc17153228c</guid><dc:creator>Hust</dc:creator><description>&lt;p&gt;I am very sorry for this situation. I was wondering if there is any soft device API to erase just several registers from your suggestion last time but not the whole page. Once again, I am very sorry for this spam.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash erase in fstorage &amp; FDS</title><link>https://devzone.nordicsemi.com/thread/117197?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 10:08:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dda1765-70d9-457d-bf7c-a100172f179f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/186712/flash-life-cycle/"&gt;Duplicate&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash erase in fstorage &amp; FDS</title><link>https://devzone.nordicsemi.com/thread/117196?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 08:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e3b1a2c-ae6c-4d85-b954-d297a6b4bfd1</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Say that you have 4000 bytes of flash, and you are writing a value of 4 bytes. Then if you do &amp;quot;wear limitation&amp;quot; you would get to update you value 1000 times before having performed 1 erase/write cycle on that area.&lt;/p&gt;
&lt;p&gt;Nothing happenes after 10 000 times, but nordic does not guarantee that it will work any more. Personally I have boards with several million cycles, and they are still working fine. So if this is just for personal, non-commercial use, you don&amp;#39;t have to care too much about it IMO.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know of any way to detect that the flash is worn out, but I am quite certain that FDS does not perform this check.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash erase in fstorage &amp; FDS</title><link>https://devzone.nordicsemi.com/thread/117195?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 08:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc28ec28-84ce-427a-98bd-e26fa546c175</guid><dc:creator>Hust</dc:creator><description>&lt;p&gt;Thank you for your answer. I have noticed that but I have no choice. So you mean that by writing the updated value and erase it when the whole page fulls will save the number of using flash? I thought each write or erase is considered as 1 time the flash is used?
And can you please tell me what happened if a flash is over 10000 times? As I understand, the flash will not be able to write and erase anymore but still can be read. Can FDS intelligent enough to detect that and move to next page to avoid that dead page?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash erase in fstorage &amp; FDS</title><link>https://devzone.nordicsemi.com/thread/117194?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 07:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00a3fe46-80d7-4cc7-8cea-d085c6b9bbf0</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Do you need to store it in flash for every update? Note that you only need to store it to flash before you power off the board. So as long as the board is powered on, you update the variable &amp;quot;locally&amp;quot; any number of times, before you write it to flash before shutting down.&lt;/p&gt;
&lt;p&gt;Anyway, FDS will itself do &amp;quot;wear limitation&amp;quot;, which means that it will use different areas of flash for each write until it has used all of its allocated area. So if you are only updating a small set of values, and you have allocated a lot of space for FDS you will be able to perform many updates before a flash erase needs to be performed.&lt;/p&gt;
&lt;p&gt;There is no way to erase a flash area smaller than a single page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>