<?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>Does Zigbee persistent data need 48kB or 48 pages of flash?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42826/does-zigbee-persistent-data-need-48kb-or-48-pages-of-flash</link><description>Looking at the instructions to add Zigbee to a SDK example here , I am instructed to define FDS_VIRTUAL_PAGES_RESERVED to 0x30 to reserve some flash for Zigbee persistent data. It seems like the same number is used in the multiprotocol examples as well</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Jan 2019 07:27:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42826/does-zigbee-persistent-data-need-48kb-or-48-pages-of-flash" /><item><title>RE: Does Zigbee persistent data need 48kB or 48 pages of flash?</title><link>https://devzone.nordicsemi.com/thread/168380?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 07:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ce7eb1-611b-4333-84a1-1dbe07c14d99</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Great, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does Zigbee persistent data need 48kB or 48 pages of flash?</title><link>https://devzone.nordicsemi.com/thread/168378?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 07:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b45af57c-f665-4128-a969-2289484df99a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I just received an answer from our ZigBee team, and they confirm your suspicion:&lt;/p&gt;
&lt;p&gt;From the second link, if it is correct that you need the space from 0x000F4000 to 0x00100000, which is 48kB. 48kB is 12 FDS pages. From sdk_config:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;// &amp;lt;o&amp;gt; FDS_VIRTUAL_PAGE_SIZE&amp;nbsp; - The size of a virtual flash page.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;__&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;// &amp;lt;i&amp;gt; Expressed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;number of 4-byte words&lt;/b&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;// &amp;lt;i&amp;gt; By default, a virtual page is the same size as a physical page.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;// &amp;lt;i&amp;gt; The size of a virtual page must be a multiple of the size of a physical page.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;// &amp;lt;1024=&amp;gt; 1024&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;// &amp;lt;2048=&amp;gt; 2048&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;__&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#ifndef FDS_VIRTUAL_PAGE_SIZE&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#define FDS_VIRTUAL_PAGE_SIZE 1024&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#endif&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So the number of pages should be set to 12, which makes up 48kB, which is what the persistent storage needs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your input!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does Zigbee persistent data need 48kB or 48 pages of flash?</title><link>https://devzone.nordicsemi.com/thread/167428?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 15:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b11a2843-655a-4de0-b0c4-0eea78223d08</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It is a good catch, and a valid question &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does Zigbee persistent data need 48kB or 48 pages of flash?</title><link>https://devzone.nordicsemi.com/thread/167279?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 07:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f7787a-8116-49d3-a026-92d56cecd597</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thanks, no hurry. Just found it curious that so much flash should be reserved, so I thought I&amp;#39;d ask.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does Zigbee persistent data need 48kB or 48 pages of flash?</title><link>https://devzone.nordicsemi.com/thread/167275?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 07:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de9c0d2a-fc4e-4792-b45b-5389bb508097</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see what you mean. I have forwarded this to our ZigBee team to see whether it actually is a bug, but I agree that it says it requires 32kB of flash from the &amp;quot;Typical flash and RAM requirements table&amp;quot; and 48kB from the &amp;quot;Zigbee stack flash and RAM layout&amp;quot;. I assume this is 32kB + a config page or a swap page.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;They replied that they will look into this, but that they can&amp;#39;t guarantee to have an answer until next week. I am sorry for the delay. I will get back to you as soon as I hear from them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, 48kB of persistant storage (FDS pages) would suggest 0x0C = 12 pages, so if you&amp;#39;d like, you can try with this, and see whether you run into some unexpected issues that you can&amp;#39;t reproduce with 0x30 = 48 reserved pages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>