<?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>Number of times FLASH is deleted by garbage collection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60069/number-of-times-flash-is-deleted-by-garbage-collection</link><description>SDK: 15.3.0 Device: EYSHJNZWZ (nRF52832) 
 Please tell me the operation when garbage collection is executed. The setting values of FDS are shown below for reference. 
 
 We recognize that it has the following configuration. ① Virtual page for garbage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2020 07:05:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60069/number-of-times-flash-is-deleted-by-garbage-collection" /><item><title>RE: Number of times FLASH is deleted by garbage collection</title><link>https://devzone.nordicsemi.com/thread/244863?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 07:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82b35af8-f40d-4aad-bd56-1cfb17c6e6ce</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, I still believe each page will be deleted once, as the garbage collection will still work using the same logic no matter how many virtual pages are used.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Number of times FLASH is deleted by garbage collection</title><link>https://devzone.nordicsemi.com/thread/244586?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 06:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85bd8ea-04cb-43c1-aff2-3df444d0bc22</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Suppose you have changed the FDS settings to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define FDS_ENABLED 1
#define FDS_VIRTUAL_PAGES 5
#define FDS_VIRTUAL_PAGE_SIZE 1024
#define FDS_VIRTUAL_PAGES_RESERVED 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;We recognize that it has the following configuration.&lt;br /&gt;① Virtual page for garbage collection&lt;br /&gt;② Usable virtual page A&lt;br /&gt;③ Usable virtual page B&lt;br /&gt;④ Usable virtual page C&lt;br /&gt;⑤ Usable virtual page D&lt;/p&gt;
&lt;p&gt;Even then, Each page will only be deleted once?&lt;/p&gt;
&lt;p&gt;Is each page deleted only once even if &amp;quot;FDS_VIRTUAL_PAGES&amp;quot; is changed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Number of times FLASH is deleted by garbage collection</title><link>https://devzone.nordicsemi.com/thread/244582?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 05:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59dc4755-75e0-41dd-9a7c-8c8878143115</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I apologize for the delayed reply, but we&amp;#39;re working on the backlog after the Easter Holiday here in Norway.&lt;/p&gt;
&lt;p&gt;Each page will only be deleted once, as the GC virtual page is not fixed to a physical page in flash, but move from one to another during the garbage collection. This way, the same page won&amp;#39;t be used twice using a garbage collection, so no pages will be deleted twice.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>