<?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>Save settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/827/save-settings</link><description>Just wondering, 
 What if I configure the Tx power level or some other attribute. What do I have to do to save the value to be used when the unit restarts?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2013 10:45:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/827/save-settings" /><item><title>RE: Save settings</title><link>https://devzone.nordicsemi.com/thread/4087?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2013 10:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8671c346-1a35-4033-b607-497cbb77707d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Leon,&lt;/p&gt;
&lt;p&gt;If you have some config settings or variables that are dynamic, you can store these to flash to set these when reset occurs.&lt;/p&gt;
&lt;p&gt;Pseudo:&lt;/p&gt;
&lt;p&gt;if ( *(uint32_t *) CONFIG_ADDRESS != 0xFFFFFFFF)
NRF_REGISTER-&amp;gt;REG = CONFIG_ADDRESS;
else
NRF_REGISTER-&amp;gt;REG = DEFAULT_VAL;&lt;/p&gt;
&lt;p&gt;The ble_flash library can be used to store to flash. Most BLE-projects use this to store bonding information on disconnect.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>