<?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>peer manager flash cycling requirements</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15981/peer-manager-flash-cycling-requirements</link><description>Hello,
there is written that Peer Manager is using flash for storing bonding data or service configuration. Can you extend a documentation - and add description when and how many bytes the peer managers stores into flash? (for example I can imagine there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Nov 2016 15:58:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15981/peer-manager-flash-cycling-requirements" /><item><title>RE: peer manager flash cycling requirements</title><link>https://devzone.nordicsemi.com/thread/60964?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 15:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c633c702-bdb1-4484-87d3-885f049cf7aa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The Peer Manager &lt;strong&gt;can&lt;/strong&gt; store the following (1 word = 4 bytes):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Bond information (20 words)&lt;/li&gt;
&lt;li&gt;Peer rank (1 word)&lt;/li&gt;
&lt;li&gt;Pending service changed (1 word)&lt;/li&gt;
&lt;li&gt;Local GATT database (4 words for 1 CCCD, 5 words for 2 CCCDs)&lt;/li&gt;
&lt;li&gt;Remote GATT database (?)&lt;/li&gt;
&lt;li&gt;Application data (?)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are stored in separate records, each with a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/lib_fds_format.html?cp=4_0_0_3_31_1_0#lib_fds_format_data"&gt;header&lt;/a&gt; of 3 words.&lt;/p&gt;
&lt;p&gt;Each virtual page has a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/lib_fds_format.html?cp=4_0_0_3_31_1_1#lib_fds_format_page"&gt;page tag&lt;/a&gt; of 2 words.&lt;/p&gt;
&lt;p&gt;The page size is 1024 words for the nRF52.&lt;/p&gt;
&lt;p&gt;So if you have reserved 1 virtual page for FDS, you can store records in 1024-2 words = 1022 words.&lt;/p&gt;
&lt;p&gt;So if the user bonds once a day, has 1 CCCD, and changes this CCCD 100 times a day, you would write 23 + 4*100 = 423 words a day.&lt;/p&gt;
&lt;p&gt;Then the flash would wear out in:&lt;/p&gt;
&lt;p&gt;1022 * 10000 / 423 = 24160 days = 66 years&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peer manager flash cycling requirements</title><link>https://devzone.nordicsemi.com/thread/60963?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 13:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db51989f-f998-41ff-9489-bde4648f140b</guid><dc:creator>vit bernatik</dc:creator><description>&lt;p&gt;I&amp;#39;m using nRF52.
Yes I think I meant CCCD. But this question is more general and answer shall provide list of things stored by peer manager and model how to compute guaranteed flash lifetime given custom usage model.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peer manager flash cycling requirements</title><link>https://devzone.nordicsemi.com/thread/60962?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 21:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37c2c53e-707b-4f9b-8523-15e91943faad</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I guess you know, but if not; nRF51 has a page size of 1024B, and the nRF52 has a page size of 4096B. Which of them are you using? What do you mean by change configuration of characteristic? Changing the CCCD? How did you get that the bonding information is 16B? I think it is much more, but I need to look into exactly how much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>