<?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>RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41858/ram-retention-shutdown</link><description>Module: 
 ilumi H52 BLE module (nRF52832) 
 
 
 SDK: 
 nRF5_SDK_15.2.0_9412b96 
 
 
 Softdevice: 
 132_nrf52_6.1.0_softdevice.hex 
 
 
 Compiler: 
 gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (15:7-2018-q2-4) 
 
 
 
 Hello</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Feb 2019 11:44:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41858/ram-retention-shutdown" /><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/169040?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 11:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb0ee49e-6a07-4d5a-8ad3-4e48b8bc837c</guid><dc:creator>haakonsh</dc:creator><description>&lt;div&gt;nRF52832 Product Specification v1.4&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;a href="https://www.nordicsemi.com/-/media/DocLib/Other/Product_Spec/nRF52832PSv14.pdf?la=en" rel="noopener noreferrer" target="_blank"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;PDF&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/169029?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 10:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eacba2b-6de9-4dd0-a2b2-d56c636424e4</guid><dc:creator>lee-marc</dc:creator><description>&lt;p&gt;Could you please send me a link to the mentioned Prod Spec? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/169017?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 10:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36fac3db-aa5a-47a1-aa34-cf7d2a02dd1c</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;See chapter&amp;nbsp;8 Memory, and&amp;nbsp;18 POWER — Power supply of the Prod Spec.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We do not have any example or library that covers this topic in our SDKs.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I suggest you start by storing a single variable in a section of RAM, turn on RAM retention on that section, go to SystemOFF and wake up again, then read back the variable to verify that your data has been retained.&amp;nbsp;&lt;br /&gt;Do note that the lower part of the RAM is used by the SoftDevice and application and it should not be used to retain data.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/168927?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 15:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb86276a-278d-45eb-9bcc-d294ce05d790</guid><dc:creator>lee-marc</dc:creator><description>&lt;p&gt;But how to do this?&lt;br /&gt;Where can I find a documentation about implementing RAM retention correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/167332?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 10:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad9c138e-7405-4a74-b52f-5a129f2e697e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;If you&amp;#39;re using a basic state machine for program flow then you can save its state and continue its execution after you&amp;#39;ve reset the CPU and initialized whatever you need to initialize. You can also use retained RAM as storage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/167139?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 14:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0096b4db-42f3-47b6-9b5a-1915c099a8b1</guid><dc:creator>lee-marc</dc:creator><description>&lt;p&gt;Ok, I see. But I don&amp;#39;t understand the benefit of RAM retention if it&amp;#39;s not possible to resume program code.&lt;/p&gt;
&lt;p&gt;I was thinking that&amp;nbsp;nRF52832 could go into ultra low power mode and resume program code after going back to normal mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/167135?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 14:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3122b210-98c3-45bf-a2e6-74b3aedea314</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&amp;quot;&lt;span&gt;What is the benefit of retaining RAM in system off mode if it will be reset at wakeup?&amp;quot;&lt;br /&gt;The RAM is not reset at wakeup, but the CPU and its registers are.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;quot;Which ultra low power state can retain RAM and return back into normal state without reset?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In our application we want to save power if the device is not used. But RAM must be retained.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;System ON, IDLE.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/166907?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 15:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e37c9490-f182-45ec-af85-63bc795dd017</guid><dc:creator>lee-marc</dc:creator><description>&lt;p&gt;What is the benefit of retaining RAM in system off mode if it will be reset at wakeup?&lt;/p&gt;
&lt;p&gt;Which ultra low power state can retain RAM and return back into normal state without reset?&lt;/p&gt;
&lt;p&gt;In our application we want to save power if the device is not used. But RAM must be retained.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/166898?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 15:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f66b306f-4008-4828-9b6c-828e1585aaba</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;SystemOFF can retain RAM, but the device WILL reset upon wakeup from SystemON. After a reset the CPU will start execution from the reset_vector&amp;nbsp;and the CPU registers are gone.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;RAM, CPU registers, and Call Stack are retained in SystemON.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/166884?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 14:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7430920a-1f97-49a5-a7f0-2a1ee95a9100</guid><dc:creator>lee-marc</dc:creator><description>[quote userid="13562" url="~/f/nordic-q-a/41858/ram-retention-shutdown/166876"]You can retain information in RAM in System OFF, but the device will still reset on wakeup from System OFF.&amp;nbsp;[/quote]
&lt;p&gt;If System OFF can&amp;#39;t retain RAM, which state does?&lt;/p&gt;
[quote userid="13562" url="~/f/nordic-q-a/41858/ram-retention-shutdown/166876"]See &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/group__nrf__pwr__mgmt?19681#ga4ed9cb21c98d64130c12eb8490821673"&gt;nrf_pwr_mgmt_run&lt;/a&gt;&amp;nbsp;API docs.[/quote]
&lt;p&gt;I can&amp;#39;t find any documentaion about RAM retention there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/166876?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 14:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:359fe747-bbcf-40c0-a411-14c0c342243d</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;See&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_1_0_17#concept"&gt;POWER — Power supply&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;You can retain information in RAM in System OFF, but the device will still reset on wakeup from System OFF.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;See &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/group__nrf__pwr__mgmt?19681#ga4ed9cb21c98d64130c12eb8490821673"&gt;nrf_pwr_mgmt_run&lt;/a&gt;&amp;nbsp;API docs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/166788?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 10:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4f9a64c-2d99-4f1f-8ea1-54f305d30dc0</guid><dc:creator>lee-marc</dc:creator><description>&lt;p&gt;Hello haakonsh,&lt;span class="user-name"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks four your reply. What do you mean with &lt;strong&gt;SystemON&lt;/strong&gt; and &lt;strong&gt;SystemOFF&lt;/strong&gt;?&lt;br /&gt;Commands &lt;strong&gt;SystemON&lt;/strong&gt; and &lt;strong&gt;SystemOFF&lt;/strong&gt; don&amp;#39;t exist. Also &lt;strong&gt;sd_power_system_on()&lt;/strong&gt; doesn&amp;#39;t exit.&lt;/p&gt;
&lt;p&gt;Is there any documentation about shutdown and RAM retention?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM retention / shutdown</title><link>https://devzone.nordicsemi.com/thread/163482?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 14:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c09ee51-e8b7-4325-bdbd-1fd3afc0cd27</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You need to use SystemON because SystemOFF resets the device on wake-up.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>