<?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>nRF52840 SDK16 - System OFF modes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63298/nrf52840-sdk16---system-off-modes</link><description>Hi everyone, 
 Looking the nRF52840 Product Specification v1.1, I see that there are several System Off modes. 
 1. Using the function sd_power_system_off() what is the by default System Off mode that the system enters? 
 2. In case that I want to retain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Jul 2020 10:35:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63298/nrf52840-sdk16---system-off-modes" /><item><title>RE: nRF52840 SDK16 - System OFF modes</title><link>https://devzone.nordicsemi.com/thread/258055?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 10:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b27672-4123-4ac2-8e6d-92e096215768</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/63298/nrf52840-sdk16---system-off-modes"]Looking the nRF52840 Product Specification v1.1, I see that there are several System Off modes.[/quote]
&lt;p&gt;These are not different modes, rather typical power consumption values for different wakeup sources and RAM configurations.&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/63298/nrf52840-sdk16---system-off-modes"]1.&amp;nbsp;Using the function&amp;nbsp;&lt;strong&gt;sd_power_system_off()&amp;nbsp;&lt;/strong&gt;what is the by default System Off mode that the system enters?[/quote]
&lt;p&gt;By default, RAM retention is turned off - if you didn&amp;#39;t activate any wakeup sources, you will have IOFF_RAMOFF_RESET or IOFF_RAMOFF_RESET_5V depending on your power supply scheme.&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/63298/nrf52840-sdk16---system-off-modes"]2. In case that I want to retain the values on some variable, I sould use the&amp;nbsp;&lt;strong&gt;IOFF_RAMON_RESET&amp;nbsp;&lt;/strong&gt;?[/quote]
&lt;p&gt;Yes, you can configure &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;cp=4_0_0_4_2_4&amp;amp;anchor=ram_sections"&gt;RAM retention&lt;/a&gt;&amp;nbsp;for some sections or for the whole RAM, but you also have to ensure that your variable is not initialized by startup code (either put it into .noinit section, or decrease RAM size in project settings and use a pointer to memory above RAM&amp;nbsp;known by&amp;nbsp;compiler)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>