<?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>FDS GC page erase</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55737/fds-gc-page-erase</link><description>Hi, 
 When factory resetting the flash storage, I delete all records, and then call fds_gc(). However, the page that&amp;#39;s used for garbage collection still contains a copy of a data page before deletion. 
 It would be nice if there&amp;#39;s a function to erase</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Dec 2019 13:03:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55737/fds-gc-page-erase" /><item><title>RE: FDS GC page erase</title><link>https://devzone.nordicsemi.com/thread/226375?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 13:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa4d28f-5f20-4d02-88e7-f51790787336</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Aha, that makes way more sense. I guess I still had the old pstorage system in mind, where it made a copy of a page.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS GC page erase</title><link>https://devzone.nordicsemi.com/thread/226361?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 12:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e748353e-2fda-440e-b8a8-c45e1e9c22b4</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not quite understand what you mean by &amp;quot;the page that&amp;#39;s used for garbage collection still contains a copy of a data page before deletion&amp;quot;. During garbage collection, only valid records are copied from the data page to the swap page, then the data page is erased, the swap page promoted to data page, and the old data page (now erased) gets to be the next swap page.&lt;/p&gt;
&lt;p&gt;If all records have been deleted, you should end up with swap page and data pages, all of which are empty, save for the FDS page header.&lt;/p&gt;
&lt;p&gt;Can you provide a flash dump after record deletion and garbage collection? (nrfjprog --readcode dump.hex)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>