<?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>Retain a RAM value after a Watchdog timeout?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12123/retain-a-ram-value-after-a-watchdog-timeout</link><description>Hi, 
 I&amp;#39;d like to retain a value in RAM after any type of reset, including a watchdog timeout, so that I can read it back in the bootloader immediately after a reset. 
 Unfortunately, I understand that GPREGRET is initialized on a watchdog reset, so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Feb 2016 13:29:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12123/retain-a-ram-value-after-a-watchdog-timeout" /><item><title>RE: Retain a RAM value after a Watchdog timeout?</title><link>https://devzone.nordicsemi.com/thread/45865?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2016 13:29:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb6a8979-2bf7-4c21-b875-005a2bcf157a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Unfortunately, the reset behavior table found in section 12.1.19 of the nRF51 RM states that RAM content &lt;strong&gt;may&lt;/strong&gt; be corrupted for all reset sources but CPU lockup and softreset. I think storing the data to local flash might be the easiest solution in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retain a RAM value after a Watchdog timeout?</title><link>https://devzone.nordicsemi.com/thread/45864?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2016 07:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f027c6d3-73c0-4b92-90d1-23da26f2f222</guid><dc:creator>Martijn</dc:creator><description>&lt;p&gt;I am not completely sure, but I think RAM can be retained during a Watchdog/Soft reset. If you set the value at a specific address that is not overridden at start then you should be able to retrieve it.&lt;/p&gt;
&lt;p&gt;See RAMON register.
Maybe &lt;a href="https://devzone.nordicsemi.com/question/836/ram-banks-ram-retention/?answer=840#post-id-840"&gt;this&lt;/a&gt; thread can help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>