<?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>enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124526/enabling-and-wake-up-from-sleep-mode-systemoff</link><description>through RTC i am trying it but it is not happening can you give any propre example one for the sleep mode enabling and wakening up from the sleep mode.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Sep 2025 11:36:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124526/enabling-and-wake-up-from-sleep-mode-systemoff" /><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549669?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 11:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd23eb77-8bc6-458d-a3b1-4cc2a0fbc709</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I would use k_sleep for regular wakeups, and k_cpu_idle if you are going to sleep, just waiting for some event. If that event is a button press, and you are not doing any BLE activity, you can use system off (sys_poweroff()). If it needs to wake up without external sources, use k_sleep() if you are waking on a timer, or k_cpu_idle() if you are waking on something else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you are using the softdevice controller for BLE activity, the softdevice will wake up what it needs to to maintain that connection/advertising/scanning. It will wake up the radio core on it&amp;#39;s own, and if there is an event that is propagated to the application (incoming data, for instance) then the radio core will wake up the application core.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549660?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 10:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2043d7ed-ffd9-45a3-88c3-942d2de5fe16</guid><dc:creator>lalith88</dc:creator><description>&lt;p data-start="314" data-end="328"&gt;Hello Edvin,&lt;/p&gt;
&lt;p data-start="330" data-end="434"&gt;Sorry for the confusion in my previous question &amp;mdash; I wasn&amp;rsquo;t asking about batteries.&lt;br data-start="412" data-end="415" /&gt; What I meant was:&lt;/p&gt;
&lt;p data-start="436" data-end="551"&gt;If I want to explicitly put the CPU into SystemOn-Idle, which method is &lt;strong data-start="508" data-end="523"&gt;recommended&lt;/strong&gt; in Zephyr on the nRF5340?&lt;/p&gt;
&lt;ul data-start="552" data-end="632"&gt;
&lt;li data-start="552" data-end="573"&gt;
&lt;p data-start="554" data-end="573"&gt;Using &lt;code data-start="560" data-end="571"&gt;k_sleep()&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="574" data-end="598"&gt;
&lt;p data-start="576" data-end="598"&gt;Using &lt;code data-start="582" data-end="596"&gt;k_cpu_idle()&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="599" data-end="632"&gt;
&lt;p data-start="601" data-end="632"&gt;Or calling &lt;code data-start="612" data-end="621"&gt;__WFE()&lt;/code&gt; directly&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start="634" data-end="890"&gt;From your previous reply, I understand they are functionally similar, but I&amp;rsquo;d like to know which one is considered &lt;strong data-start="749" data-end="766"&gt;best practice&lt;/strong&gt; when writing Zephyr applications (for example, in terms of scheduler integration, power management, and maintainability).&lt;/p&gt;
&lt;p data-start="892" data-end="916"&gt;Best regards,&lt;br data-start="905" data-end="908" /&gt; Lalith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549658?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 10:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5717de46-5fd8-4500-b60a-75e440f9fad3</guid><dc:creator>Edvin</dc:creator><description>[quote user="lalith88"]So to confirm my understanding:[/quote]
&lt;p&gt;Yes. All of those are correct.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="lalith88"]If it is an battery overrented one then which one you will suggest.[/quote]
&lt;p&gt;We don&amp;#39;t have any recommendations for 3rd party products. Besides, this will very much depend on your device. How much current your application is drawing, and how long you want the battery to last, decides what capacity you would need.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only thing that comes to mind is that you can look at the BOM for the Thingies that we have, such as the Thingy 53:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-53/Downloads?lang=en#infotabs"&gt;https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-53/Downloads?lang=en#infotabs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Look for the &amp;quot;Hardware Files&amp;quot;, which contains the BOM.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549653?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 10:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb7838fe-cf43-4b13-9d99-cfa4cbf6d944</guid><dc:creator>lalith88</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&amp;nbsp;&lt;br /&gt;If it is an battery overrented one then which one you will suggest.&lt;br /&gt;&lt;br /&gt;Best regards&amp;nbsp;&lt;br /&gt;Lalith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549649?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 09:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcdc17aa-59c7-470b-a738-a896b2b0b7f3</guid><dc:creator>lalith88</dc:creator><description>&lt;p data-start="247" data-end="261"&gt;Hello Edvin,&lt;/p&gt;
&lt;p data-start="263" data-end="355"&gt;Thank you for the detailed explanation &amp;mdash; it&amp;rsquo;s clear now.&lt;br data-start="319" data-end="322" /&gt; So to confirm my understanding:&lt;/p&gt;
&lt;ul data-start="356" data-end="657"&gt;
&lt;li data-start="356" data-end="432"&gt;
&lt;p data-start="358" data-end="432"&gt;&lt;code data-start="358" data-end="367"&gt;__WFE()&lt;/code&gt;, &lt;code data-start="369" data-end="380"&gt;k_sleep()&lt;/code&gt;, and &lt;code data-start="386" data-end="400"&gt;k_cpu_idle()&lt;/code&gt; will all enter SystemOn-Idle.&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="433" data-end="544"&gt;
&lt;p data-start="435" data-end="544"&gt;The main advantage of using &lt;code data-start="463" data-end="474"&gt;k_sleep()&lt;/code&gt; is that it integrates with the scheduler and handles wakeup timers.&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="545" data-end="657"&gt;
&lt;p data-start="547" data-end="657"&gt;As long as all threads are waiting (sleep/semaphore/etc.), the CPU will automatically go into SystemOn-Idle.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start="659" data-end="765"&gt;I&amp;rsquo;ll go through the Bluetooth samples (like &lt;code data-start="703" data-end="720"&gt;peripheral_uart&lt;/code&gt;) as you suggested to see this in practice.&lt;/p&gt;
&lt;p data-start="767" data-end="791"&gt;Best regards,&lt;br data-start="780" data-end="783" /&gt; Lalith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549648?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 09:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c0a5c2c-cabe-49fc-a435-ee4ad7dc9680</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;1: It is the same, apart that k_sleep will also set the timer for you. You can also use k_sleep(K_FOREVER) if you want to just wait for an event. In addition you have&amp;nbsp;k_cpu_idle(), which will also do the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that the device will also enter sleep in&amp;nbsp;k_sem_take(), while it waits for the semaphore to be free.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2: It is the same. The OS (Zephyr) will handle the threads for you, and WFE will cause your current thread to go to sleep. If all the threads are in WFE/k_sleep, then the CPU will actually go to idle.&lt;/p&gt;
&lt;p&gt;3: You need to have all threads go to sleep when there is no more work. All of the BLE samples in NCS\nrf\samples\bluetooth does this. Study one of them, e.g. the peripheral_uart, which has two threads (main() and&amp;nbsp;ble_write_thread())&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549644?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 08:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c00ce43-9358-433d-97b7-fc7c77b3db26</guid><dc:creator>lalith88</dc:creator><description>&lt;p data-start="1474" data-end="1488"&gt;Hello Edvin,&lt;/p&gt;
&lt;p data-start="1490" data-end="1584"&gt;Thank you for sharing the details and current consumption link. I have a follow-up question:&lt;/p&gt;
&lt;ol data-start="1586" data-end="2293"&gt;
&lt;li data-start="1586" data-end="1749"&gt;
&lt;p data-start="1589" data-end="1642"&gt;What is the &lt;strong data-start="1601" data-end="1625"&gt;practical difference&lt;/strong&gt; between using:&lt;/p&gt;
&lt;div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;div class="sticky top-9"&gt;
&lt;div class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;div class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="overflow-y-auto p-4" dir="ltr"&gt;&lt;code class="whitespace-pre! language-c"&gt;&lt;span&gt;__WFE();
__SEV();
__WFE();
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p data-start="1699" data-end="1749"&gt;versus simply using &lt;span&gt;&amp;nbsp;k_msleep(K_MSEC(1000))&lt;/span&gt;&lt;code data-start="1719" data-end="1736"&gt;;&lt;/code&gt; in Zephyr?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1751" data-end="2034"&gt;
&lt;p data-start="1754" data-end="2034"&gt;I understand &lt;code data-start="1767" data-end="1779"&gt;k_msleep()&lt;/code&gt; lets the thread sleep and the scheduler manages the idle entry, while the WFE sequence forces the CPU to sleep immediately. Could you please confirm if there are &lt;strong data-start="1942" data-end="1994"&gt;advantages in power saving or interrupt handling&lt;/strong&gt; when using one approach vs the other?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="2036" data-end="2293"&gt;
&lt;p data-start="2039" data-end="2293"&gt;Also, as I understand, for the system to actually enter &lt;strong data-start="2095" data-end="2112"&gt;SystemOn-Idle&lt;/strong&gt;, all other threads/events should be idle as well. What is the recommended way to &lt;strong data-start="2194" data-end="2221"&gt;manage multiple threads&lt;/strong&gt; so the device consistently goes into SystemOn-Idle whenever possible?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-start="2295" data-end="2412"&gt;This will help me decide whether to rely fully on Zephyr APIs or mix in direct &lt;code data-start="2374" data-end="2383"&gt;WFE/SEV&lt;/code&gt; calls for tighter control.&lt;/p&gt;
&lt;p data-start="2414" data-end="2438"&gt;Best regards,&lt;br data-start="2427" data-end="2430" /&gt; Lalith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549639?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 07:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8c43c5-044c-47f8-9747-919161041f55</guid><dc:creator>Edvin</dc:creator><description>[quote user="lalith88"] Is it automatically entered when the CPU executes &lt;code&gt;WFI/WFE&lt;/code&gt;,[/quote]
&lt;p&gt;Yes, but it will also be entered whenever it doesn&amp;#39;t have any more tasks, so e.g. by calling k_sleep(), which is typcally what you will see in the samples. Also, when you are in a Bluetooth Low Energy connection, the system on idle is the state that it will be using between the connection events (the events occuring every connection interval). So whenever the radio is done maintaining the connection, it will go back to sleep (system on). So basically all samples use this system on state.&lt;/p&gt;
[quote user="lalith88"]&lt;div&gt;&lt;span&gt;tatic&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;system_on_idle&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;gpio_pin_configure_dt&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;leds&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;GPIO_OUTPUT_ACTIVE&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Enter low-power idle mode until any interrupt/event occurs */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;__WFE&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;__SEV&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;__WFE&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[0].POWER = 0x0001; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[1].POWER = 0; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[2].POWER = 0x8000; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[3].POWER = 0xFFFF; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[4].POWER = 0; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[5].POWER = 0; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[6].POWER = 0x8000; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[7].POWER = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Optional: blink LED each time CPU wakes up */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//gpio_pin_toggle_dt(&amp;amp;leds);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Let other threads run / handle events */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;// k_msleep(1000);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;I would remove the __WFE(), __SEV(), and __WFE(), and just use k_msleep(K_MSEC(1000)); to enter system on idle for 1 second.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here are some numbers for system on vs system off:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/current_consumption/doc/current_consumption.html#ariaid-title3"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/current_consumption/doc/current_consumption.html#ariaid-title3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549629?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 06:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d858ef2b-e72e-46f9-9dbc-a9263b56215e</guid><dc:creator>lalith88</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;tatic&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;system_on_idle&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;gpio_pin_configure_dt&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;leds&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;GPIO_OUTPUT_ACTIVE&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Enter low-power idle mode until any interrupt/event occurs */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;__WFE&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;__SEV&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;__WFE&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[0].POWER = 0x0001; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[1].POWER = 0; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[2].POWER = 0x8000; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[3].POWER = 0xFFFF; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[4].POWER = 0; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[5].POWER = 0; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[6].POWER = 0x8000; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// NRF_VMC-&amp;gt;RAM[7].POWER = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Optional: blink LED each time CPU wakes up */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//gpio_pin_toggle_dt(&amp;amp;leds);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Let other threads run / handle events */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;// k_msleep(1000);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&amp;nbsp;&lt;br /&gt;just explain about this how it will useful to power management&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549628?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 06:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e528283-358f-4d91-87fa-8ffcbb67fd27</guid><dc:creator>lalith88</dc:creator><description>&lt;p data-start="618" data-end="632"&gt;Hello Edvin,&lt;/p&gt;
&lt;p data-start="634" data-end="727"&gt;Thank you for clarifying about the limitation with SystemOff and RTC wakeup on the nRF5340.&lt;/p&gt;
&lt;p data-start="729" data-end="787"&gt;I would like to understand more about &lt;strong data-start="767" data-end="784"&gt;SystemOn-Idle&lt;/strong&gt;:&lt;/p&gt;
&lt;ol data-start="789" data-end="1316"&gt;
&lt;li data-start="789" data-end="988"&gt;
&lt;p data-start="792" data-end="988"&gt;How exactly does SystemOn-Idle work on the nRF5340? Is it automatically entered when the CPU executes &lt;code data-start="894" data-end="903"&gt;WFI/WFE&lt;/code&gt;, or do we need to explicitly configure it through the Zephyr Power Management API?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="989" data-end="1129"&gt;
&lt;p data-start="992" data-end="1129"&gt;Are there any &lt;strong data-start="1006" data-end="1040"&gt;examples or reference projects&lt;/strong&gt; showing how to put the device into SystemOn-Idle and then wake up again using the RTC or with out RTC?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1130" data-end="1316"&gt;
&lt;p data-start="1133" data-end="1207"&gt;Could you please share some &lt;strong data-start="1161" data-end="1192"&gt;current consumption numbers&lt;/strong&gt; for nRF5340:&lt;/p&gt;
&lt;ul data-start="1211" data-end="1316"&gt;
&lt;li data-start="1211" data-end="1249"&gt;
&lt;p data-start="1213" data-end="1249"&gt;In SystemOn-Idle with RTC running.&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1253" data-end="1286"&gt;
&lt;p data-start="1255" data-end="1286"&gt;In SystemOn-Idle without RTC.&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1290" data-end="1316"&gt;
&lt;p data-start="1292" data-end="1316"&gt;Compared to SystemOff.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-start="1318" data-end="1467"&gt;This will help me evaluate whether SystemOn-Idle meets my use case, since I need a periodic wakeup from the RTC while minimizing power consumption.&lt;/p&gt;
&lt;p data-start="1469" data-end="1498"&gt;Best regards,&lt;br data-start="1482" data-end="1485" /&gt;Lalith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enabling and wake up from sleep mode (systemoff)?</title><link>https://devzone.nordicsemi.com/thread/549610?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 20:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d756a6ce-152d-4484-80c5-049c53a8d0b0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Unfortunately, it is not possible to wake the nRF5340 from systemoff using the RTC. This is only possible on the nRF54L-series, which has a GRTC. Other nRF devices will not be able to have the RTC running in SystemOff, and hence, it is not possible to wake up from it. If you need to wake on a timer, you need to use systemOn-Idle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can read about systemoff on the nRF5340 here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/reset/doc/reset.html#ariaid-title5"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/reset/doc/reset.html#ariaid-title5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So from systemOff, the only things that can wake up the nRF5340 are GPIO interrupts, reset pin, power on reset or NFC. If you need to wake it up from a timer, you need to have an external timer module that can give a pulse after a given amount of time.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>