<?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>fs_store doesn&amp;#39;t update memory</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17694/fs_store-doesn-t-update-memory</link><description>Hi everyone, 
 I am using SDK12 and the Flash Storage module to store some data in Flash. I frequently need to update some of these data basing on received commands and new data. 
 When I use fs_store after the fs_erase, the Flash is written as expected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2017 05:44:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17694/fs_store-doesn-t-update-memory" /><item><title>RE: fs_store doesn't update memory</title><link>https://devzone.nordicsemi.com/thread/68076?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 05:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:213d8e54-9acc-4286-830c-958c4e619f2a</guid><dc:creator>zhu.ky</dc:creator><description>&lt;p&gt;i have meet the same promble ,i try it ,when write data to flash ,it must erase the flash first ,then write data to flash .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fs_store doesn't update memory</title><link>https://devzone.nordicsemi.com/thread/68075?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 08:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c80b723-1c67-4ab6-a4bf-0ef105da4a0e</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;To answer your question:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&amp;#39;Writing&amp;#39; to flash means pulling bits set to one to zero, 1 -&amp;gt; 0.
So basically if you write something in a location in flash, you can&amp;#39;t update it without erasing the page (which flips its bits back to one).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No, there is no way to partially erase a page.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In short, fstorage does not have an update operation but Flash Data Storage (fds) does.
I suggest you take a look at fds usage documentation to get started, you can find it here:
&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.0.0%2Flib_fds_usage.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There was a great post about flash libraries in the SDK.
I looked it up for you: &lt;a href="https://devzone.nordicsemi.com/question/79459/difference-between-persistent-storage-libraries/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fs_store doesn't update memory</title><link>https://devzone.nordicsemi.com/thread/68074?ContentTypeID=1</link><pubDate>Sun, 13 Nov 2016 20:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c09ce15-6099-4353-b299-1f82ca2fac65</guid><dc:creator>Artucas</dc:creator><description>&lt;p&gt;Hi, i don&amp;#39;t really know for the new SDK, but don&amp;#39;t you have something like &lt;code&gt;fs_update();&lt;/code&gt;? In older SDK we had &lt;code&gt;pstorage_update();&lt;/code&gt; to update a piece of flash memory, and that operation was handled everything for you. That have been said, it is normally in every mcu first to delete the flash data before writing to it. It is jus that pstorage_update(); used to handle both those operations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>