<?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>Increased current consumption moving from SDK2.3 to SDK2.6</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116179/increased-current-consumption-moving-from-sdk2-3-to-sdk2-6</link><description>Hi 
 I&amp;#39;m running the blinky sample (modified) on a custom board based on nrf9160. When compiling with SDK2.3 and toolchain 2.3 the current consumption is about 84uA (LED off). But when changing to SDK 2.6 and toolchain 2.6 the current consumption increase</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Nov 2024 09:43:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116179/increased-current-consumption-moving-from-sdk2-3-to-sdk2-6" /><item><title>RE: Increased current consumption moving from SDK2.3 to SDK2.6</title><link>https://devzone.nordicsemi.com/thread/509633?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 09:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:200f6ad9-e5b1-4005-940c-725b315819b2</guid><dc:creator>Bard</dc:creator><description>&lt;p&gt;The modem has to be turned off in SDK2.6 (but not in SDK2.3). This solves the problem.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2016 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;
#include &amp;lt;zephyr/pm/device.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;modem/lte_lc.h&amp;gt;

/* 1000 msec = 1 sec */
#define SLEEP_TIME_MS   1000

/* The devicetree node identifier for the &amp;quot;led0&amp;quot; alias. */
#define LED0_NODE DT_ALIAS(led0)

/*
 * A build error on this line means your board is unsupported.
 * See the sample documentation for information on how to fix this.
 */
static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
static const struct device *const uart =  DEVICE_DT_GET(DT_NODELABEL(uart0));

int main(void)
{
	int ret;

	if (!gpio_is_ready_dt(&amp;amp;led)) {
		return 0;
	}

	ret = gpio_pin_configure_dt(&amp;amp;led, GPIO_OUTPUT_ACTIVE);
	if (ret &amp;lt; 0) {
		return 0;
	}

	pm_device_action_run(uart, PM_DEVICE_ACTION_SUSPEND);

	nrf_modem_lib_init();
	lte_lc_power_off();

	while (1) {
		ret = gpio_pin_toggle_dt(&amp;amp;led);
		if (ret &amp;lt; 0) {
			return 0;
		}
		k_msleep(SLEEP_TIME_MS);
	}
	return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_GPIO=y
CONFIG_PM_DEVICE=y

CONFIG_LTE_LINK_CONTROL=y
CONFIG_NRF_MODEM_LIB=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With this code the current consumption is back at 84uA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>