<?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>Current consumption testing of basic GPIO usage on nRF9151DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118764/current-consumption-testing-of-basic-gpio-usage-on-nrf9151dk</link><description>Hello, 
 This morning I thought I would investigate the current consumption of some of the examples in the nRF connect SDK Fundamentals using the nRF9151DK and the PPK II. In all current measurement experiments, I followed this hardware setup adapted</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Feb 2025 09:13:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118764/current-consumption-testing-of-basic-gpio-usage-on-nrf9151dk" /><item><title>RE: Current consumption testing of basic GPIO usage on nRF9151DK</title><link>https://devzone.nordicsemi.com/thread/523195?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 09:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41868163-393c-43d2-aa64-c7fc632ecfff</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am glad to hear it worked for you. Thank you for the update.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption testing of basic GPIO usage on nRF9151DK</title><link>https://devzone.nordicsemi.com/thread/523085?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 15:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceaaa9e0-1bf7-4fdb-a470-a4c34eee4009</guid><dc:creator>Sage_Duggal</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Amazing! Thank you very much for your support. I flashed your changes and received below 2 uA as measured by the PPKII.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s quite interesting that the nRF9151 requires both NRF_REGULATORS-&amp;gt;SYSTEMOFF = 1; as well as a sys_poweroff(); function call. I will investigate this in more detail over the weekend.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption testing of basic GPIO usage on nRF9151DK</title><link>https://devzone.nordicsemi.com/thread/523059?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 13:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0811833e-2306-43fe-86af-230ab1729040</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for providing detailed steps.&amp;nbsp;&lt;br /&gt;Following your steps I got the result for current consumption of 2.77 mA. If you want to see lower power consumption, you could try to make some changes to your main.c and configuration file prj.conf, Please find the changes below.&lt;br /&gt;main.c&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_modem_lib_init();
lte_lc_power_off();
k_sleep(K_MSEC(1000));
NRF_REGULATORS-&amp;gt;SYSTEMOFF = 1;
nrf_modem_lib_shutdown();
sys_poweroff();
return 0;&lt;/pre&gt;&lt;br /&gt;prj.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=n
CONFIG_LOG=n
CONFIG_GPIO=y
CONFIG_NRF_MODEM_LIB=y
CONFIG_LTE_LINK_CONTROL=y
CONFIG_POWEROFF=y&lt;/pre&gt;&lt;br /&gt;With these changes I managed to get around 1.97 uA.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption testing of basic GPIO usage on nRF9151DK</title><link>https://devzone.nordicsemi.com/thread/522757?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 04:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97250a0-53ed-4c4d-b04e-719f83e16749</guid><dc:creator>Sage_Duggal</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Thanks for reaching out. Sure thing. I will share the most simple test case in an effort to make replication easier for you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF Connect: nRF Connect SDK and Toolchain v2.9.0&lt;/li&gt;
&lt;li&gt;Hardware markings: nRF9151DK, PCA10171, 0.9.0, 2024.37&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;prj.conf&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=n
CONFIG_TFM_LOG_LEVEL_SILENCE=y

CONFIG_LTE_LINK_CONTROL=y&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;main.c (this was pulled directly from &lt;a href="https://devzone.nordicsemi.com/guides/hardware-design-test-and-measuring/b/nrf9x/posts/getting-started-with-current-measurements-on-the-nrf9160#:~:text=Measuring%20current%20on%20the%20nRF9160%20DK&amp;amp;text=Apply%20voltage%20directly%20on%20the,plugged%20in%20to%20the%20DK."&gt;here&lt;/a&gt;)&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;modem/lte_lc.h&amp;gt;
void main(void)
{
	lte_lc_power_off();
	k_sleep(K_MSEC(1000));
	NRF_REGULATORS-&amp;gt;SYSTEMOFF = 1;
}&lt;/pre&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Build commands:&lt;/strong&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;/strong&gt;I generated a pristine build from nRF Connect selecting the correct board (nRF9151dk/nrf9151/ns)&lt;/li&gt;
&lt;li&gt;This successfully built a file with&amp;nbsp;one warning below, but this should be ignorable.
&lt;ul&gt;
&lt;li&gt;&amp;quot;warning: return type of &amp;#39;main&amp;#39; is not &amp;#39;int&amp;#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;I flashed the merged.hex file to the board&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Measurement steps:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;USB C plugged into nRF9151DK with the power switch on the DK turned on.&lt;/li&gt;
&lt;li&gt;Jumper removed from P22&lt;/li&gt;
&lt;li&gt;VOUT from PPKII connected to VDD_nRF on P22&lt;/li&gt;
&lt;li&gt;GND from PPKII connected to GND on P22&lt;/li&gt;
&lt;li&gt;PPKII set in Source Meter mode with a supply voltage of 3715mV.&lt;/li&gt;
&lt;li&gt;Started sampling for 60 seconds&lt;/li&gt;
&lt;li&gt;Enabled power output on the PPKII&lt;/li&gt;
&lt;li&gt;&lt;span style="text-decoration:underline;"&gt;Average current is 2.8mA&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Additional information:&lt;/strong&gt; I actually tried running all of the above code and measurement steps on a different nRF9151DK my rep sent me as a sanity check. Received the same 2.8mA unfortunately.&lt;/p&gt;
&lt;p&gt;As far as I can tell, this code should be putting the DK to the deepest sleep possible, though unfortunately it remains awake.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption testing of basic GPIO usage on nRF9151DK</title><link>https://devzone.nordicsemi.com/thread/522277?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 16:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a6da3a8-86f1-4697-b28c-ded937e5ed22</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you share your sample code for all test cases including build commands, so that I could try to replicate your results?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption testing of basic GPIO usage on nRF9151DK</title><link>https://devzone.nordicsemi.com/thread/522122?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 04:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa31df1-54cc-4676-ab37-4d3bf2f2dd3d</guid><dc:creator>Sage_Duggal</dc:creator><description>&lt;p&gt;I did another slight variation&amp;nbsp;today, with the following code:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;modem/lte_lc.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/sys/poweroff.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;main&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;lte_lc_power_off&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;k_sleep&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;K_MSEC&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sys_poweroff&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;My prj.conf was the following:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_POWEROFF&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LTE_LINK_CONTROL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span&gt;- With the PPKII in Source Mode set to 3.7V.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;- PPKII VOut connected to VDD_nRF on nRF9151DK P22&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;- PPKII GND connected to GND on nRF9151DK P22&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Current measurement is still 2.8mA which is the active CPU current. It appears this is the lowest the DK will ever go?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>