<?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>Application data and peer manager with FDS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20259/application-data-and-peer-manager-with-fds</link><description>I have an application that uses FDS and I&amp;#39;ve recently added to it the peer manager in SDK 12.2.0, which also uses FDS. It turns out that the application data keeps being updated, so every time that happens, a record is deleted in FDS and a new one is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Mar 2017 12:46:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20259/application-data-and-peer-manager-with-fds" /><item><title>RE: Application data and peer manager with FDS</title><link>https://devzone.nordicsemi.com/thread/78918?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 12:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e0e70a-aac8-4bdc-89c3-edd2f2b0cf55</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Genis,&lt;/p&gt;
&lt;p&gt;What exactly you meant by &amp;quot;I&amp;#39;ll have at least one page that will hold the pairing information and that I&amp;#39;ll never be able to reuse&amp;quot; ?&lt;/p&gt;
&lt;p&gt;There is no page dedicated for peer manager or any module. The record is stored and rotated around multiple pages when we do deleting and updating records. Records from different module can be stored on same flash page.&lt;/p&gt;
&lt;p&gt;When you want to change the content of a record, it&amp;#39;s not possible to simply overwrite the record in the flash. You need to erase the whole flash page to be able to update a value inside that page.
We avoid doing that by simply mark the record as deleted and find a new place to write the new value.&lt;/p&gt;
&lt;p&gt;When you determine FDS size, always give one extra page for garbage collection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>