<?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>how to wake up from system off without reseting a variable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4340/how-to-wake-up-from-system-off-without-reseting-a-variable</link><description>Hi, 
 On my ble application, I want to keep after wake up reset the previous value of a variable, I tried using sd_power_ramon_set(0x000f000f) to keep on all ram partitions when in system off mode but it didn&amp;#39;t worked.
is there any way I can do this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Nov 2014 14:45:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4340/how-to-wake-up-from-system-off-without-reseting-a-variable" /><item><title>RE: how to wake up from system off without reseting a variable</title><link>https://devzone.nordicsemi.com/thread/15440?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2014 14:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f311210-23de-4b5e-87f1-bda09856f5e7</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;Make sure you write to the sd_power_ramon_set() after you have initialized the softdevice. I just tested this by a very simple if in between conn_params_init() and advertising_start() in the ble_app_hrs example.&lt;/p&gt;
&lt;p&gt;It returned success and the value of RAMON was set to 0x00030003.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if(sd_power_ramon_set(0x00030003) == NRF_SUCCESS)
		{
		__nop();
		}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to wake up from system off without reseting a variable</title><link>https://devzone.nordicsemi.com/thread/15439?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2014 12:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34cbf022-43db-4b24-838e-58e36f533140</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;I just discovered sd_power_ramon_set() doesn&amp;#39;t return NRF_SUCCESS, what can be the cause ?
Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to wake up from system off without reseting a variable</title><link>https://devzone.nordicsemi.com/thread/15438?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2014 11:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad20c1c3-3837-44f7-97ed-f56da8a1aa25</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;sd_power_ramon_set() should keep the RAM valid as long as you get a NRF_SUCCESS back from it. How do you detect that it&amp;#39;s not retained? What do you use to wake the chip up from SYSTEMOFF?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>