<?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>bare-metal program to enter low-power IDLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120267/bare-metal-program-to-enter-low-power-idle</link><description>my minimal main() does the following, after coming out of reset with the MCU in its default state: 
 NRF_P1_S-&amp;gt;DIRSET = 1; // LED0 output NRF_P1_S-&amp;gt;OUTSET = 1l // LED0 on /* busy wait for 1 second */ NRF_P1_S-&amp;gt;OUTCLR = 1l // LED0 off NRF_P1_S-&amp;gt;PIN_CFG</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Apr 2025 00:56:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120267/bare-metal-program-to-enter-low-power-idle" /><item><title>RE: bare-metal program to enter low-power IDLE</title><link>https://devzone.nordicsemi.com/thread/530091?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 00:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd983117-c47d-4daf-86c8-93d70b425793</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;looking back at my original example, GLITCHDET is enabled by default....&amp;nbsp; once i disabled GLITCHDET, my power numbers were right where i expected....&lt;/p&gt;
&lt;p&gt;i&amp;#39;m good to go now....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bare-metal program to enter low-power IDLE</title><link>https://devzone.nordicsemi.com/thread/530081?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 21:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0ee2243-eef7-4451-a5f7-5df85848ec3c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;The idle thread will put the CPU in idle mode,&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/kernel/services/threads/system_threads.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/kernel/services/threads/system_threads.html&lt;/a&gt;&amp;nbsp;, so you could actually have a empty main.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try setting&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_SERIAL&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;in your prj.conf file, and see if that lowers the current consumption&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bare-metal program to enter low-power IDLE</title><link>https://devzone.nordicsemi.com/thread/530059?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 16:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6257556f-b062-4394-9c26-c5c4cc3fac95</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;i&amp;#39;m using a joulescope js220 power analyzer for my measurements....&amp;nbsp; my nordic PPK-2 should arrive soon, which i&amp;#39;ll use as well....&lt;/p&gt;
&lt;p&gt;my target board is the DK....&amp;nbsp; &amp;nbsp;my test program is &amp;lt;200 bytes....&amp;nbsp; once it reaches main(), it does what the issue above noted....&lt;/p&gt;
&lt;p&gt;to make things even simpler, ALL i did was call __WFI()....&amp;nbsp; i didn&amp;#39;t even configure a GPIO....&lt;/p&gt;
&lt;p&gt;this is essentially a HW question....&amp;nbsp; after the chip comes out of reset, what&amp;#39;s the minimal amount of code required to enter IDLE (with current consumption in the 1-5 uA range)....&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bare-metal program to enter low-power IDLE</title><link>https://devzone.nordicsemi.com/thread/530058?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 16:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c36f5e2e-d64a-4697-a23e-664735079f62</guid><dc:creator>Sigurd</dc:creator><description>[quote user="bios-bob"]show me how to modify the system_off sample so that it enters the lowest power IDLE mode instead....&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;It should do that out-of-the box.&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/boards/nordic/system_off"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/boards/nordic/system_off&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What do you measure with that sample?&lt;/p&gt;
&lt;p&gt;Also, are you using a DK or your own custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bare-metal program to enter low-power IDLE</title><link>https://devzone.nordicsemi.com/thread/529829?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 13:58:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f176c4f-722a-472a-9abe-e824c32ec5c3</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;as an alternative, show me how to modify the system_off sample so that it enters the lowest power IDLE mode instead....&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bare-metal program to enter low-power IDLE</title><link>https://devzone.nordicsemi.com/thread/529402?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 01:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5860a921-3933-4050-aba3-a29e2fb786e8</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;sorry for the sloppy input....&amp;nbsp; lines 1,2,4 should end with 1 &amp;lt;&amp;lt; 14&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>