<?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>Turning off unused RAM to get minimum power consumption.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101605/turning-off-unused-ram-to-get-minimum-power-consumption</link><description>I need to wake up the nrf52840 every 250ms so I am using the system on sleep mode and the RTC. I have only a few dozen bytes that I need to have persist between each wake up. I want to turn off all but one block of RAM for maximum power efficiency and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jul 2023 11:37:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101605/turning-off-unused-ram-to-get-minimum-power-consumption" /><item><title>RE: Turning off unused RAM to get minimum power consumption.</title><link>https://devzone.nordicsemi.com/thread/436726?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 11:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:786af9ab-d9e3-4154-ac1f-01b413c8cc5b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again Adam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the late response. We are a bit low on staff in the summer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just want to share some update on my measurement.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I edited the RTC example for testing. &lt;br /&gt;Here is my code to turn off RAM retention:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1689593330939v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I have to retain RAM[8], most likely because the stack is located at the top of RAM.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here is with full ram Retention (&lt;span&gt;RAM_RETENTION=1)&lt;/span&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="430" src="https://devzone.nordicsemi.com/resized-image/__size/1250x860/__key/communityserver-discussions-components-files/4/pastedimage1689593233418v2.png" width="625" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is after turn off most blocks (set&amp;nbsp;RAM_RETENTION=0)&lt;br /&gt;&lt;br /&gt;&lt;img style="height:421px;max-height:421px;max-width:627px;" height="421" src="https://devzone.nordicsemi.com/resized-image/__size/1254x842/__key/communityserver-discussions-components-files/4/pastedimage1689593223906v1.png" width="626" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can find that the current consumption dropped almost 1.6uA. This matched with the calculation from&amp;nbsp;our expert in the email thread with Gene.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found that nRF_POWER-&amp;gt;RAM[8] plays an important role in the power consumption. If I don&amp;#39;t put RAM[8] (part of it) into OFF mode, I will have this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:371px;max-height:371px;max-width:663px;" height="371" src="https://devzone.nordicsemi.com/resized-image/__size/1326x742/__key/communityserver-discussions-components-files/4/pastedimage1689593268973v3.png" width="662" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So the current dropped only 0.60 uA when RAM[8] was in full retention.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was testing with PCA10056 DK v3.0 with PPK2 in Ampere mode. My suggestion is to try switch SW6 to nRFOnly if you don&amp;#39;t see low current consumption in your measurement to avoid leakage current to other components on the board. As power reset between each measurement is also suggested.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtc-_2D00_-Ramretention.zip"&gt;devzone.nordicsemi.com/.../rtc-_2D00_-Ramretention.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turning off unused RAM to get minimum power consumption.</title><link>https://devzone.nordicsemi.com/thread/436183?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 09:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e9b4b86-94d1-4495-a7ee-a392a2e9200f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Adam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Håkon is on vacation and I will take over the ticket. Due to reduced staff in the summer there will be some delay in our response. I&amp;#39;m sorry for that.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turning off unused RAM to get minimum power consumption.</title><link>https://devzone.nordicsemi.com/thread/435309?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 15:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eabf99b-cbad-4c2e-bff9-d91ea9583f6d</guid><dc:creator>Adam Cook</dc:creator><description>&lt;p&gt;I have tried that an not&amp;nbsp;measured any noticeable difference. Could there be other components on the DK that could be consuming extra power?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turning off unused RAM to get minimum power consumption.</title><link>https://devzone.nordicsemi.com/thread/435250?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 12:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83dedfc6-eef0-45df-827a-514a3168dfe3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should set the&amp;nbsp;NRF_POWER-&amp;gt;RAM[0].POWER when setting blocks directly with a mix of &amp;#39;0&amp;#39; and &amp;#39;1&amp;#39;.&lt;/p&gt;
&lt;p&gt;SET / CLR registers has to be written &amp;#39;1&amp;#39; to in order to perform a specific set or clear task.&lt;/p&gt;
&lt;p&gt;For more info, see this chapter:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=5_0_0_4_2_6_20#register.RAM-0-8.POWER"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=5_0_0_4_2_6_20#register.RAM-0-8.POWER&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>