<?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>nRF9160 - SYSTEM OFF Mode Current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111709/nrf9160---system-off-mode-current</link><description>Dear colleagues, 
 with the newer SDK (I am now using NCS v2.5.0 and 2.6.0), I have difficulties finding the right SYSTEM OFF mode current. Code currently looks like as follows: 
 
 Based on: 
 A) 
 and B) 
 prj.conf was extended to: (does not change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2024 11:12:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111709/nrf9160---system-off-mode-current" /><item><title>RE: nRF9160 - SYSTEM OFF Mode Current</title><link>https://devzone.nordicsemi.com/thread/487484?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 11:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed6e4495-c30c-4681-a7b1-a6582c877391</guid><dc:creator>Kevin Kotinkar</dc:creator><description>&lt;p&gt;Thanks Charlie, good input. &lt;br /&gt;&lt;br /&gt;I will be able to test this next week. If confirmed, we should update our recommended answer/solution to this thread &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 - SYSTEM OFF Mode Current</title><link>https://devzone.nordicsemi.com/thread/487236?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 08:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c33c2d77-fccc-41a3-957c-16e0cef1ffd8</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Thanks for sharing your experience.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/poweroffcurrent2.png" /&gt;&lt;/p&gt;
&lt;p&gt;The specification claim&amp;nbsp;the&amp;nbsp;MCUOFF0 could reach a typical value 1.4uA.&lt;/p&gt;
&lt;p&gt;I added&amp;nbsp;&lt;span&gt;nrf_modem_lib_shutdown&lt;/span&gt;&lt;span&gt;(); after modem power off to shut it down, then got around 1.25uA on my nRF9160DK v1.1.0.&lt;/span&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;int main(void)
{
&amp;#160; &amp;#160; printk(&amp;quot;Hello World! %s\n&amp;quot;, CONFIG_BOARD);
&amp;#160; &amp;#160; nrf_modem_lib_init();
&amp;#160; &amp;#160; printk(&amp;quot;Turn off Modem and switch to SYSTEM OFF\n&amp;quot;);
&amp;#160; &amp;#160; lte_lc_power_off();
&amp;#160; &amp;#160; nrf_modem_lib_shutdown();
&amp;#160; &amp;#160; k_sleep(K_MSEC(1000));
&amp;#160; &amp;#160; NRF_REGULATORS-&amp;gt;SYSTEMOFF = 1;
&amp;#160; &amp;#160; return 0;
}&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;You can test if it can help to decrease the current on your device further.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 - SYSTEM OFF Mode Current</title><link>https://devzone.nordicsemi.com/thread/486893?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 12:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94466231-4bdf-4668-9b64-21ad75100feb</guid><dc:creator>Kevin Kotinkar</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;br /&gt;&lt;br /&gt;after back and forth testing, and updating my Toolchain + SDK again, I found out the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;On previous SDK releases,&amp;nbsp;nrf_modem_lib_init() is not required (tested this on NCS v1.8.0)&lt;/li&gt;
&lt;li&gt;On current SDK releases (tested NCS v2.5.0,v2.6.0,v2.6.1) -&amp;nbsp;&lt;span&gt;nrf_modem_lib_init()&amp;nbsp;is a MUST / requirement&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Your code provided code in the project *.zip file and the compiled ncs261_systemoff.hex seem to not include this line and thus don&amp;#39;t work (for me).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;You should see a higher current when you fully power down the board and SiP and repower after a few seconds.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;It will seem to work, when you had a correct code sample flashed initially, and then reflash your code while measuring the current consumption and not going through a full power down cycle.&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;With a working code, I am at around 2uA, testing this with SICA B1, nRF9160 DK v1.0.1&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;I am slightly higher with the old SiP revision but it also works: 2.35 uA on SICA B0, nRF9160 DK v0.14.0&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;CONFIG_LTE_AUTO_INIT_AND_CONNECT was deprecated and removed with NCS v2.6.0 - but the cmake will report this, so its easy to catch if missing it.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;My code looks as follows now. I don&amp;#39;t know why I couldn&amp;#39;t get the right result previously as I had the modem lib init() call already in my code. A clean SDK &amp;amp; Toolchain installation, plus a pristine build now helped me to find consistent results.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;modem/lte_lc.h&amp;gt;
#include &amp;lt;modem/nrf_modem_lib.h&amp;gt;

int main(void)
{
	printk(&amp;quot;Hello World! %s\n&amp;quot;, CONFIG_BOARD);
	nrf_modem_lib_init();
	printk(&amp;quot;Turn off Modem and switch to SYSTEM OFF\n&amp;quot;);
	lte_lc_power_off();
	k_sleep(K_MSEC(1000));
    NRF_REGULATORS-&amp;gt;SYSTEMOFF = 1;
	return 0;
}&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;prj.conf:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Modem library and link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_NRF_MODEM_LIB=y&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Attaching also my compiled hex file:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs_5F00_261_5F00_sysoff_5F00_modemlib_5F00_init.hex"&gt;devzone.nordicsemi.com/.../ncs_5F00_261_5F00_sysoff_5F00_modemlib_5F00_init.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If someone is interested in NCS v1.8.0 compiled file (code is similar but no modem_lib_init() and the zephyr related includes are different):&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs_5F00_180_5F00_systemoff.hex"&gt;devzone.nordicsemi.com/.../ncs_5F00_180_5F00_systemoff.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Kevin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 - SYSTEM OFF Mode Current</title><link>https://devzone.nordicsemi.com/thread/486872?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 08:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28fb8bea-bd84-4567-afe0-1cbcccbe5176</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;I did a try with your codes based on NCS v2.6.1 and nRF9160DK v1.1.0. I think it works as expected.&lt;/p&gt;
&lt;p&gt;Could you try the attached codes? Maybe test with one more nRF9160DK in case it is related to HW?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs261_5F00_systemoff.zip"&gt;devzone.nordicsemi.com/.../ncs261_5F00_systemoff.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs261_5F00_SystemOff.hex"&gt;devzone.nordicsemi.com/.../ncs261_5F00_SystemOff.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:320px;max-width:460px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/920x640/__key/communityserver-discussions-components-files/4/8484.SystemOff.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 - SYSTEM OFF Mode Current</title><link>https://devzone.nordicsemi.com/thread/486871?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 15:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f9f6052-dbd7-4f83-85a6-70e1214acf42</guid><dc:creator>Kevin Kotinkar</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;yes please have a try. I digged already further into this, and can reproduce the behavior.&lt;br /&gt;&lt;br /&gt;My code works perfectly fine under NCS v1.8 for example.&lt;br /&gt;Under NCS v2.5.0/v2.6.0 it does not work.&lt;br /&gt;&lt;br /&gt;When I flash my compiled hex from NCS v1.8, and then flash my build hex based on NCS v2.5/2.6 it works until I completely power down the board and reset it. This is reproduceable.&lt;/p&gt;
&lt;p&gt;SW Settings:&lt;br /&gt;Under NCS v2.6.0 LTE AUTO INIT and CONNECT has been removed already, code snipped was from NCS v2.5.&lt;br /&gt;I only use lte_lc_power_off().&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 - SYSTEM OFF Mode Current</title><link>https://devzone.nordicsemi.com/thread/486870?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 15:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e39368d9-f4da-4f75-8da8-1b90768c7088</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;I worked on a same request three years ago. See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/261335#permalink=620746"&gt;https://devzone.nordicsemi.com/support-private/support/261335#permalink=620746&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I will try to adapt it to NCS v2.6.1 tomorrow, but you can also have a try. There are quiet deprecated function and configuration according to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/releases_and_maturity/releases/release-notes-2.6.0.html"&gt;nRF Connect SDK v2.6.0 Release Notes — nRF Connect SDK 2.6.1 documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="lte_lc_init" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/modem/lte_lc.html#c.lte_lc_init"&gt;&lt;code&gt;&lt;span&gt;lte_lc_init()&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function is deprecated.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="lte_lc_deinit" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/modem/lte_lc.html#c.lte_lc_deinit"&gt;&lt;code&gt;&lt;span&gt;lte_lc_deinit()&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function is deprecated. Use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="lte_lc_power_off" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/modem/lte_lc.html#c.lte_lc_power_off"&gt;&lt;code&gt;&lt;span&gt;lte_lc_power_off()&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function instead.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="lte_lc_init_and_connect" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/modem/lte_lc.html#c.lte_lc_init_and_connect"&gt;&lt;code&gt;&lt;span&gt;lte_lc_init_and_connect()&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function is deprecated. Use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="lte_lc_connect" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/modem/lte_lc.html#c.lte_lc_connect"&gt;&lt;code&gt;&lt;span&gt;lte_lc_connect()&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function instead.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="lte_lc_init_and_connect_async" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/modem/lte_lc.html#c.lte_lc_init_and_connect_async"&gt;&lt;code&gt;&lt;span&gt;lte_lc_init_and_connect_async()&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function is deprecated. Use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="lte_lc_connect_async" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/modem/lte_lc.html#c.lte_lc_connect_async"&gt;&lt;code&gt;&lt;span&gt;lte_lc_connect_async()&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function instead.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Removed the deprecated Kconfig option&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;CONFIG_LTE_AUTO_INIT_AND_CONNECT&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>