<?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 change flash size using DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52206/fds-change-flash-size-using-dfu</link><description>NRF52832 
 SDK is 14 
 System has bootloader, softdevice s132 5.0.0 and app. 
 App uses FDS, FDS config: 
 
 
 #ifndef FDS_ENABLED 
 #define FDS_ENABLED 1 
 #endif 
 
 #ifndef FDS_VIRTUAL_PAGES 
 #define FDS_VIRTUAL_PAGES 25 
 #endif 
 #ifndef FDS_VIRTUAL_PAGE_SIZE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2024 07:12:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52206/fds-change-flash-size-using-dfu" /><item><title>RE: FDS change flash size using DFU</title><link>https://devzone.nordicsemi.com/thread/479121?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 07:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77630c3f-2052-4cf9-9b40-98b85d11e169</guid><dc:creator>Mikey</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I also have the same settings as him, but I am using sdk17. Due to product design issues, I cannot start after upgrading to dfu. So, if I want to increase the size of fds, can I only modify the &amp;quot;FDS.VIRTUAL-PAGES&amp;quot; value of the application?&lt;br /&gt;Looking forward to your reply, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS change flash size using DFU</title><link>https://devzone.nordicsemi.com/thread/210045?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 09:17:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdb7702a-9a1f-42b8-83d6-c8efbeb3cfab</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The number you specify with&amp;nbsp;FDS_VIRTUAL_PAGES in sdk_config.h is used by&amp;nbsp;pages_init(). It sees&amp;nbsp;the last page before the bootloader as the last FDS page and uses the specified number of pages below that. During initialization, it checks all the FDS pages to see if it is already a valid FDS page (has a valid FDS page header). If so, it is used. If not, it checks if the page is empty. If it is, it is used. But if the page does not have a valid FDS header and is not empty, it is not touched.&lt;/p&gt;
&lt;p&gt;This means that in order to expand the number of FDS pages you need to do two things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set&amp;nbsp;FDS_VIRTUAL_PAGES to the new number.&lt;/li&gt;
&lt;li&gt;The first time you boot after the DFU you need to erase all the new FDS pages before you call fds_init(). This way you ensure that the flash is empty and can be used. If not, the flash may not be erased (if for instance, the bootloader used it for dual bank updates).&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS change flash size using DFU</title><link>https://devzone.nordicsemi.com/thread/209933?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 19:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88f4a15b-ad5f-464a-8530-13848477d57a</guid><dc:creator>Maidu</dc:creator><description>&lt;p&gt;Virtual page size is 3 not 25&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>