<?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>Most efficient/smart way of persisting characteristic values on nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19759/most-efficient-smart-way-of-persisting-characteristic-values-on-nrf52</link><description>Hello,
Can anyone help me figuring out the best possible way to store certain characteristics which I want to never reset values on the events of controller RESET or power cycle (OFF/ON). The only way to reset those characteristics must be through flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Feb 2017 10:48:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19759/most-efficient-smart-way-of-persisting-characteristic-values-on-nrf52" /><item><title>RE: Most efficient/smart way of persisting characteristic values on nRF52</title><link>https://devzone.nordicsemi.com/thread/76836?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 10:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20db8b52-1610-4d8c-bcc0-c8691b963800</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you are using Peer Manager you are already using FDS (and Fstorage), so I would recommend to only use this. Device Manager uses Pstorage which could conflict with Fstorage.&lt;/p&gt;
&lt;p&gt;There are some threads in here on how to use FDS to store application data. I would just update the data in flash every time a characteristic value is written to, and then every time the device starts up set the characteristic values with sd_ble_gatts_value_set().&lt;/p&gt;
&lt;p&gt;FDS implements wear leveling, so the flash endurance shouldn&amp;#39;t be a problem, this if course depends on how many writes we are talking about here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>