<?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>reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72892/reducing-ram-consumption-and-current</link><description>Hi Team, 
 
 SDK- nRF5_SDK_17.0.2_d674dde 
 SD - s112_nrf52_7.2.0 
 chip - nRF52810 
 
 
 I would like to reduce the power consumption during systemON by disabling unused sections of RAM. And hence I am trying to reduce the code size as less possible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Mar 2021 14:11:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72892/reducing-ram-consumption-and-current" /><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300446?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 14:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca9736a-4f08-469e-8cfc-7b26a3fd3740</guid><dc:creator>buja</dc:creator><description>&lt;p&gt;My device will be switching between systemON and systemOFF. I am able to achieve 300nA during systemOFF which is the least as per specification. But during systemON my device is consuming around 900nA. I would like to bring down it to 600nA-700nA by disabling the unused RAM portions. That is my intention.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300438?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 13:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35fdaa7c-cd02-4414-916a-a75b3ee4a3e3</guid><dc:creator>awneil</dc:creator><description>[quote userid="102105" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current/300406#300406"]My system will be in systemON most of the time[/quote]
&lt;p&gt;You mean System &lt;strong&gt;OFF&lt;/strong&gt; most of the time?&lt;/p&gt;
&lt;p&gt;Yes, that is the usual approach to minimising energy consumption.&lt;/p&gt;
&lt;p&gt;But your actual question was:&lt;/p&gt;
[quote userid="102105" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current"]I would like to reduce the power consumption during systemON by disabling unused sections of RAM[/quote]
&lt;p&gt;did you also mean System &lt;strong&gt;OFF&lt;/strong&gt; there ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300406?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e719b0a-3db2-43cd-a2db-d78a1b4ca4ff</guid><dc:creator>buja</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current/300397#300397"]You can see that the CPU alone is drawing on the order of a couple of &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&lt;strong&gt;milli&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;amps - so a few hundred &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&lt;strong&gt;nano&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;amps for the RAM is of no practical consequence at all.[/quote]
&lt;p&gt;My system will be in systemON most of the time. It will wake up only to send a beacon which not very frequent.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300397?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ace9fd1-3829-4197-96bc-47bbdce4ee47</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current/300390#300390"]is that significant relative to everything else in System ON ?[/quote]
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52810/chapters/current_consumption/doc/frontpage.html?cp=4_5_0_4_1"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52810/chapters/current_consumption/doc/frontpage.html?cp=4_5_0_4_1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And, for example:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52810/_tmp/gluon/autodita/CURRENT/parameters.id_current_cpu.html?cp=4_5_0_4_1_0_0"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52810/_tmp/gluon/autodita/CURRENT/parameters.id_current_cpu.html?cp=4_5_0_4_1_0_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can see that the CPU alone is drawing on the order of a couple of &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&lt;strong&gt;milli&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;amps - so a few hundred &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&lt;strong&gt;nano&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;amps for the RAM is of no practical consequence at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300396?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6608bb15-4177-4cdf-baa7-55713cfab244</guid><dc:creator>buja</dc:creator><description>&lt;p&gt;Thank you Andrew for your reply.&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current/300390#300390"]and is that significant relative to everything else in System ON ?[/quote]
&lt;p&gt;We are extremely concerned about the current consumption. We are trying to get the least possible figures on all scenarios.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300390?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a4d3412-8a91-4da0-9f36-b9ee9e582044</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The code is executed direct from Flash - unless you specifically move it to RAM, and run from there.&lt;/p&gt;
[quote userid="102105" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current/300387#300387"]600 to 800nA based on the RAM blocks[/quote]
&lt;p&gt;and is that significant relative to everything else in System ON ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300387?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75816cf7-7684-4acb-9c0a-58e3f914b516</guid><dc:creator>buja</dc:creator><description>&lt;p&gt;Thank you for your replies.&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current/300254#300254"]Note that code is stored in Flash - not RAM.[/quote]
&lt;p&gt;Yes, Would not the code be moved to RAM on startup ? Or the code will be executed from flash only ?&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current/300254#300254"]&lt;p&gt;Is the RAM&amp;#39;s current consumption actually going to be significant in System ON?&amp;nbsp;&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;As far as I understand, systemON current will vary from 600 to 800nA based on the RAM blocks enabled/disabled. Please correct me if I am wrong.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300381?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bd1195d-3e13-4e28-b475-14df309a475f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I agree with Andrew.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please also check out&amp;nbsp;our&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;Adjustment of RAM and Flash memory guide&lt;/a&gt;&amp;nbsp;for details on how to edit RAM and Flash sizes in your application. However, you&amp;#39;ve added quite a few services to your application, which all will use some RAM in the SoftDevice. You can take a look at&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/22386/how-to-reduce-the-ram-requirement-of-the-softdevice"&gt;this case&lt;/a&gt;, where a few ways to reduce the SoftDevices RAM usage has been suggested.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;You also could turn off the features in the sdk_config.h if they are not used in the project.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing RAM consumption and current</title><link>https://devzone.nordicsemi.com/thread/300254?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 23:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b417bf-64f7-4e14-9bb7-1552b2dc6e6f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note that code is stored in Flash - not RAM.&lt;/p&gt;
&lt;p&gt;Is the RAM&amp;#39;s current consumption actually going to be significant in System ON?&amp;nbsp;&lt;/p&gt;
[quote userid="102105" url="~/f/nordic-q-a/72892/reducing-ram-consumption-and-current"] I see that many drivers which I am not using are getting compiled and added to the binary.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;They might be compiled, but not added to the binary - check linker options.&lt;/p&gt;
&lt;p&gt;If they&amp;#39;re really not used, then don&amp;#39;t compile them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>