<?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>Minimizing power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54043/minimizing-power-consumption</link><description>Here&amp;#39;s is my device profile: 
 
 Running on SDK 15.2.0 
 FreeRTOS 
 Custom board, based on NRF52840 
 Powered by a 3.5Ah battery 
 Using CLI utility 
 Using the following peripherals 
 
 I2C 
 ADC 
 NRF CRYPTO 
 UART (app_uart with fifo) 
 NFC 
 
 
 Softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Nov 2019 14:19:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54043/minimizing-power-consumption" /><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/220102?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 14:19:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860b31c2-7cb5-46dc-a963-9882e622a1d4</guid><dc:creator>Tim Adu</dc:creator><description>&lt;p&gt;Thanks! It definitely helped. Managed to bring it down to 65uA in SYSTEM OFF. I had defined a dummy handler which was not returning true. I defined the shutdown sequence in my application but did not set the dummy handler to return true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/218871?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 15:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b70cf6b-56dd-4979-a0d9-b872f8f3a7ce</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;nrf_pwr_mgmt will execute a number of handlers before entering sleep, where that is defined on how many you have registered in your application via NRF_PWR_MGMT_HANDLER_REGISTER(my_pwr_mgmt_handler, PRIO), and if any of these returns false, it will not go to sleep.&lt;/p&gt;
&lt;p&gt;If you do not have any handlers registered, then it&amp;#39;ll go to systemoff directly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t you have any pins to wake up on? Are you relying on NFC to wakeup?&lt;/p&gt;
&lt;p&gt;Have you entered debug mode to see if the call to sd_power_system_off() in nrf_pwr_mgmt.c is called ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/218642?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 15:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4f9cdf-47f9-43da-9c19-98eb957c39fc</guid><dc:creator>Tim Adu</dc:creator><description>&lt;p&gt;As the very last step before calling the SHUTDOWN function&lt;/p&gt;
&lt;div style="background-color:#002b36;color:#bbbbbb;font-family:&amp;#39;Monaco&amp;#39;, Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:12px;font-weight:normal;line-height:18px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#268bd2;"&gt;nrf_pwr_mgmt_shutdown&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I reset all GPIO pins that are used by the application to their default states using &lt;strong&gt;nrf_gpio_cfg_default&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Does it make sense to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/218638?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 15:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4d3c4ca-1e7d-4832-a230-91fb2cf1e54e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Good, then its not the nRF itself that is causing this, unless you are getting an assertion or similar.&lt;/p&gt;
&lt;p&gt;When you enter SYSTEMOFF, all clocks are stopped, GPIOs are latched in their current configuration, and the nRF itself should not draw much power. Only way to wake up is on pin or reset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However; if the GPIOs are latched as output, with either &amp;#39;1&amp;#39; or &amp;#39;0&amp;#39; towards an external device (LED, IC, or anything else), then that might draw current.&lt;/p&gt;
&lt;p&gt;Could you check your GPIO configuration to ensure that there is nothing external that is misbehaving due to the latched GPIO settings?&amp;nbsp;&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><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/218626?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 14:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4cecd0a-76ea-4273-bffe-c89cad78655f</guid><dc:creator>Tim Adu</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried that; the board is power cycled always before starting measurements.&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/218622?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 14:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29935b92-8163-48dc-90af-70830f088570</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Try power cycling the board, then measure with the PPK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/218618?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 14:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1e9b562-a59f-46ae-a998-bf9a2edd7e2b</guid><dc:creator>Tim Adu</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s static 4.5 mA.&lt;/p&gt;
&lt;p&gt;I use Segger Embedded Studio to develop the application.&lt;/p&gt;
&lt;p&gt;I have test setup that generates a production image, which contains the application (built using the &lt;strong&gt;Release&lt;/strong&gt; config, not &lt;strong&gt;Debug&lt;/strong&gt;), SoftDevice and Bootloader. After loading the image, then I start the PPK to do power consumption readings.&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimizing power consumption</title><link>https://devzone.nordicsemi.com/thread/218613?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 14:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4e7616-4fd8-461c-891d-7dc08c2a13d0</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;Static 4.5 mA current consumption?&lt;/p&gt;
&lt;p&gt;Are you by any chance in debug mode while checking this? Emulated system off, which will run in debug mode, will not give the expected result in terms of power consumption, and it is recommended that you add a while(1) loop after the call to system off in your firmware, for debugging purposes.&lt;/p&gt;
&lt;p&gt;If you power cycle your device, it should go out of debug mode.&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>