<?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>power consumption in Idle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50876/power-consumption-in-idle</link><description>Hi, 
 We are starting to measure the power of our nrf52840 based design. 
 I&amp;#39;d like to establish the power number for Idle() , since system will be in Idle() most of the time. 
 
 For that , I have used the following code, invoked from CLI : 
 __disable_irq</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2019 08:29:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50876/power-consumption-in-idle" /><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203754?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 08:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10e737ca-10ab-482f-a794-f8e5073ffb2c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Ran&lt;/p&gt;
&lt;p&gt;Deep sleep will generally save more power. Just keep in mind that that sets the chip in system OFF mode, which means it can&amp;#39;t have a timer running while sleeping. It can only be awoken by resets and button events, etc.&lt;/p&gt;
&lt;p&gt;Please see the Sleep section I linked to in my first reply on this ticket for more info on the system OFF mode current consumption.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203715?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 05:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db93008-931e-4b39-b478-579111f9e09a</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Thanks, will it save more power if using DEEPSLEEP ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203581?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 12:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7d3662f-4398-4bc4-924a-b0f40b0de4ac</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Ran&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;SCB-&amp;gt;SCR |=&amp;nbsp;&lt;/span&gt;&lt;span&gt;SCB_SCR_SLEEPDEEP_Msk function is needed if you want the chip to wake up on any kind of internal events (not just interrupts). It&amp;#39;s used in FreeRTOS examples as in tickless idle mode we disable the RTC interrupt, but still want to wake up after the timeout.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203549?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 11:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48311cce-c65a-41e2-870b-247e8149a259</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Simon&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using embOS (by Segger) with&amp;nbsp;tickless impl. (ported from freetos example)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have disabled interrupt before Idle for test purposes only - So HW guys can measure the &amp;quot;floor&amp;quot; . ( I&amp;#39;ve added a &amp;quot;sleep&amp;quot; command to our CLI )&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;ve noticed that in &amp;quot;freetos&amp;quot; examples, the following line is being used&amp;nbsp; :&lt;/p&gt;
&lt;p&gt;&amp;quot;SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk&amp;quot;&amp;nbsp; ( set Cortex-M0 sleep mode ) .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But it is not used in any non-freetos example ? why is that ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203543?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 11:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0e10fc-f719-4b74-9e86-143f693266fb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Ran&lt;/p&gt;
&lt;p&gt;Are you using FreeRTOS? If not you won&amp;#39;t have to worry about this. In any case, this is an issue in a few build codes of the nRF52832, so seeing as you use an nRF52840 this should not apply in any case.&lt;/p&gt;
&lt;p&gt;You should not have to configure SPI/I2C when your device stays in system ON mode. Also, why would you have to disable interrupts to go to idle mode?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203517?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 09:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26c1de5c-d4b7-41ff-a791-919de9731a6d</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Also - I came across &amp;quot;NRFFOSDK-11174&amp;quot; (&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32734/why-use-wfe-instead-of-sd_app_evt_wait-on-sdk15-freertos"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/32734/why-use-wfe-instead-of-sd_app_evt_wait-on-sdk15-freertos&lt;/a&gt;&amp;nbsp;) .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is this still an Issue ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203516?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 09:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83d79790-b0f7-4abf-8082-2751ab88973a</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Thanks, Will do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using UART fo CLI and LOG and SPI\I2C to communicate with the sensors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using &amp;quot;blocked&amp;quot; mode for I2C\SPI so it is safe to put them into LPM when going Idle().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Should I configured them ( SPI\I2C ) in a specific way or put them into LPM before going to Idle ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption in Idle</title><link>https://devzone.nordicsemi.com/thread/203505?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 08:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4139bc97-1842-4ed7-8f5a-eab9a081f299</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Ran&lt;/p&gt;
&lt;p&gt;Most of our examples use the idle_state_handle() function in order to go into idle mode, which will call the sd_app_evt_wait() function if you&amp;#39;re using the SoftDevice. The idle_state_handle() will process any pending log operations, and then sleep until the next event occurs, so I recommend you use this function as well. You can see the ble_app_bps example to see how it is set up and what functions it calls.&lt;/p&gt;
&lt;p&gt;You can see the idle current for various scenarios in section 5.2.1.1 Sleep in the nRF52840 product specification or &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2F_tmp%2Fgraviton%2Fautodita%2FCURRENT%2Fparameters.i_sleep.html&amp;amp;cp=3_0_0_4_1_0_0"&gt;here in the Infocenter&lt;/a&gt;. Depending on whether you want RAM retention, how you want to wake the device, etc. the current consumption will in system ON (Idle) mode will be between 1.3uA to ~20uA.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>