<?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>--ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48220/--ramwr-values-persist-after-reboot-using-nrfjprog-to-set-values</link><description>Hi All, 
 I have an application running on the nRF52832. From within the application I can store data to 0x2000 2010 - 0x2000 2028 and read the data back after a reboot/power cycle with no problem after I implemented the following code in my save_state</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2019 11:38:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48220/--ramwr-values-persist-after-reboot-using-nrfjprog-to-set-values" /><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191622?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 11:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bbc9cb2-5217-4fde-8fa0-ad6d600251a9</guid><dc:creator>rshankle</dc:creator><description>&lt;p&gt;thanks for the links.&amp;nbsp; BTW I was able to make some progress if I changed the addresses I was using.&amp;nbsp; I thought I grabbed the 0x2000.... from one of the examples.&amp;nbsp; &amp;nbsp;I&amp;#39;m seeing some success with 0x1000 1024 as a memory location.&amp;nbsp; (I expect 0x1000 1000 to 0x2000 0000&amp;nbsp; to work.)&lt;/p&gt;
&lt;p&gt;thanks again,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191559?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 08:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a19a1eaa-23c9-4055-9350-31d866a732ce</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Bob,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are three examples showing how to write to the flash in the SDK:&lt;/p&gt;
&lt;p&gt;examples/peripheral/flash_fds&lt;/p&gt;
&lt;p&gt;&lt;span&gt;examples/peripheral/flash_fstorage&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;examples/peripheral/flashwrite&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The last one shouldn&amp;#39;t be used if you use the SoftDevice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can also find more info in the documentation regarding fds and fstorage:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds.html?cp=5_1_3_55"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds.html?cp=5_1_3_55&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fstorage.html?cp=5_1_3_56"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fstorage.html?cp=5_1_3_56&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If your application stores bluetooth bonding data, chances are high that you already have fds in your project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191379?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ee5363-8961-4112-8070-410ec8623c12</guid><dc:creator>rshankle</dc:creator><description>&lt;p&gt;Hakon,&lt;/p&gt;
&lt;p&gt;Can you send an example on saving to flash that will persist after a full power cycle?&amp;nbsp; &amp;nbsp;Maybe I&amp;#39;m doing something wrong on my end.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191378?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8dc7549-dba6-449a-ad96-79b578fbbe91</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I do not see any other solutions than storing these settings to the flash.&lt;/p&gt;
&lt;p&gt;You can look at &amp;quot;fds&amp;quot; module (which uses fstorage) for flash storage.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191363?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 12:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4df2b074-58ca-44c4-a895-cfcc7f5768e8</guid><dc:creator>rshankle</dc:creator><description>&lt;p&gt;Hakon,&lt;/p&gt;
&lt;p&gt;I need to program the configuration parameters into the nRF52832 and then power down the board for shipping to the customer&amp;#39;s site.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried &amp;quot;nrfjprog --reset&amp;quot;&amp;nbsp; that of course works because power isn&amp;#39;t lost to the board.&amp;nbsp; But &amp;quot;nrfjprog --pinreset&amp;quot; doesn&amp;#39;t work (meaning the data isn&amp;#39;t maintained in memory when the processor comes back up.)&lt;/p&gt;
&lt;p&gt;Are there registers/memory locations in the nRF52832 that I can use as NVRam?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191361?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 12:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb7b94c7-782b-4eb2-bcc8-18a6d98ca711</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try &amp;quot;nrfjprog --reset&amp;quot;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191331?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 11:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7adce7d-11eb-438b-a91f-43c4d08f2050</guid><dc:creator>rshankle</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using nrfjprog how do I write to NonVolatile RAM so the data persists after I power the board off and back on?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(A different way to look at it, how do I get data to persist after doing &amp;quot;nrfjprog --pinreset&amp;quot;&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --ramwr values persist after reboot (using nrfjprog to set values)</title><link>https://devzone.nordicsemi.com/thread/191261?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 08:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145ecaf5-043e-44b5-8ae4-d9f4ee824965</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are three types of reset which does not reset the RAM, as shown in this table:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=3_1_0_17_7#unique_832471788"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=3_1_0_17_7#unique_832471788&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A&amp;nbsp;soft-reset is one of the sources that doesn&amp;#39;t reset the RAM, and therefore the stored data still persists. A power cycle will include a power-on-reset, thus you cannot trust your RAM content at that point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>