<?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>Decrease Power Consumption on nRF5340 during distance measurement (dm) sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126224/decrease-power-consumption-on-nrf5340-during-distance-measurement-dm-sample</link><description>Hello, 
 
 I am trying to reduce the current on the nRF5340 during the distance measurement (dm) sample for BLE ranging. For current measurement I am using the Power Profiler Kit II. I am measuring via Vout of PPK to &amp;quot;+&amp;quot; from external supply of the nRF5340</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Dec 2025 15:34:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126224/decrease-power-consumption-on-nrf5340-during-distance-measurement-dm-sample" /><item><title>RE: Decrease Power Consumption on nRF5340 during distance measurement (dm) sample</title><link>https://devzone.nordicsemi.com/thread/557458?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 15:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:265c5ee0-2024-4f88-aab2-4d4e119f06ce</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see you describe a mix of sysbuild and child_image files (which are not used together). Which SDK version are you using, and can you upload your&amp;nbsp;entire project as a zip file that I can build on my end? (That will be after Christmas, though).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the mean time, I would advice that you look at the generated .config for both the app and net core image, and verify there that UART/serial/logging features are all disabled for both cores.&lt;/p&gt;
&lt;p&gt;Also, I see you write that when&amp;nbsp;&lt;span&gt;When I&amp;#39;m setting the DK to sys_poweroff(), I am getting approx. 450-500 µA. This leads me to wonder if you have any thing connected to the DK, and that is what is contributing to the current consumption? Which idle current consumption do you get if you take just the BLE beacon sample and disable logging? Do you see a high current consumption then as well?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decrease Power Consumption on nRF5340 during distance measurement (dm) sample</title><link>https://devzone.nordicsemi.com/thread/557455?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 15:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff3d8f7f-4c4e-4387-a363-b4cbde1a5d5c</guid><dc:creator>TG3112</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;br /&gt;I already did that and still get the high current consumption mentioned above.&lt;br /&gt;&lt;br /&gt;I am sure there is something running in the background but not what. I also flashed a proramm wihtout any Bluetooth Configs at all, just a main with sys_poweroff() but I just can&amp;#39;t get it below 450-500 &amp;micro;A.&lt;br /&gt;&lt;br /&gt;is there a possibility to provide a fully working low power example with buiild configuration, device tress and .conf files so that I can be sure I am having the right settings and measuring the right currents ? As the BLE advetising and scanning intervals / windows are clearly visible I think I am measuring the right way.&lt;br /&gt;&lt;br /&gt;It would be very helpful for me if you could provide a low power example like that to make sure the flashed firmware isn&amp;#39;t the problem.&lt;br /&gt;&lt;br /&gt;I can also provide my configs so that you can see what i flashed:&lt;br /&gt;&lt;br /&gt;prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_DEVICE=y

CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_LOG=n
CONFIG_PRINTK=n

CONFIG_TICKLESS_KERNEL=y

CONFIG_BOARD_ENABLE_DCDC_APP=y
CONFIG_DEBUG=n
CONFIG_RAM_POWER_DOWN_LIBRARY=y
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_POWEROFF=y


CONFIG_I2C=n
CONFIG_WATCHDOG=n
CONFIG_GPIO=n
CONFIG_SPI=n
CONFIG_SERIAL=n
# Interrupts
CONFIG_DYNAMIC_INTERRUPTS=n
CONFIG_IRQ_OFFLOAD=n

# Console
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_EARLY_CONSOLE=n

# Build
CONFIG_SIZE_OPTIMIZATIONS=y

# ARM
# CONFIG_ARM_MPU=n
# CONFIG_TIMESLICING=n
# CONFIG_COMMON_LIBC_MALLOC=n
CONFIG_LOG=n
CONFIG_ASSERT=n&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;app.overlay:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2023 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	/* The timer instance to use. */
	chosen {
		ncs,dm-timer = &amp;amp;timer2;
	};

	/* The selected pins will be used by Distance Measurement module for debug purposes. */
	dm_gpio {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		dm_ranging: dm-ranging {
			gpios = &amp;lt;&amp;amp;gpio0 27 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;DM Ranging Pin&amp;quot;;
		};
		dm_add_request: dm-add-request {
			gpios = &amp;lt;&amp;amp;gpio0 26 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;DM Add request Pin&amp;quot;;
		};

	};

};



&amp;amp;adc {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;pwm0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart2 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;i2c0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;i2c1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi2 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi4 { status = &amp;quot;disabled&amp;quot;; };


&amp;amp;nfct {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;gpiote {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;boards/nrf5340dk_nrf5340_cpuapp.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_DEVICE=y
CONFIG_POWEROFF=y

CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_LOG=n
CONFIG_PRINTK=n

CONFIG_BOARD_ENABLE_DCDC_NET=y
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;boards/nrf5340dk_nrf5340_cpuapp.overlay&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

#include &amp;lt;zephyr/dt-bindings/ipc_service/static_vrings.h&amp;gt;

/ {
	chosen {
		/delete-property/ zephyr,ipc_shm;
	};

	reserved-memory {
		/delete-node/ memory@20070000;

		sram_ipc0: memory@20070000 {
			reg = &amp;lt;0x20070000 0x8000&amp;gt;;
		};

		sram_ipc1: memory@20078000 {
			reg = &amp;lt;0x20078000 0x8000&amp;gt;;
		};
	};

	ipc {
		/delete-node/ ipc0;

		ipc0: ipc0 {
			compatible = &amp;quot;zephyr,ipc-openamp-static-vrings&amp;quot;;
			memory-region = &amp;lt;&amp;amp;sram_ipc0&amp;gt;;
			mboxes = &amp;lt;&amp;amp;mbox 0&amp;gt;, &amp;lt;&amp;amp;mbox 1&amp;gt;;
			mbox-names = &amp;quot;tx&amp;quot;, &amp;quot;rx&amp;quot;;
			role = &amp;quot;host&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
		};

		ipc1: ipc1 {
			compatible = &amp;quot;zephyr,ipc-openamp-static-vrings&amp;quot;;
			memory-region = &amp;lt;&amp;amp;sram_ipc1&amp;gt;;
			mboxes = &amp;lt;&amp;amp;mbox 2&amp;gt;, &amp;lt;&amp;amp;mbox 3&amp;gt;;
			mbox-names = &amp;quot;tx&amp;quot;, &amp;quot;rx&amp;quot;;
			role = &amp;quot;host&amp;quot;;
			zephyr,buffer-size = &amp;lt;2048&amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
	};
};

 /* Enable pin forwarding to network core. The selected pins will be used by
  * Distance Measurement module for debug purposes.
  *
  * Note: Pay attention to assign the same GPIO pins as those provide in network core DTS overlay.
  */
&amp;amp;gpio_fwd {
	compatible = &amp;quot;nordic,nrf-gpio-forwarder&amp;quot;;
	dm-gpio-if {
		gpios = &amp;lt;&amp;amp;gpio0 26 0&amp;gt;,
			&amp;lt;&amp;amp;gpio0 27 0&amp;gt;;
		};
};

&amp;amp;uart0 {
    current-speed = &amp;lt;230400&amp;gt;;
    status = &amp;quot;disabled&amp;quot;;
};


&amp;amp;usbd {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;usbreg {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;adc {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;pwm0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart2 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;i2c0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;i2c1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi2 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;qspi {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;nfct {
    status = &amp;quot;disabled&amp;quot;;
};

&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;child_image/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

#include &amp;lt;zephyr/dt-bindings/ipc_service/static_vrings.h&amp;gt;

/ {
	/* The timer instance to use. */
	chosen {
		ncs,dm-timer = &amp;amp;timer2;
	};

	chosen {
		/delete-property/ zephyr,ipc_shm;
	};

	reserved-memory {
		/delete-node/ memory@20070000;

		sram_ipc0: memory@20070000 {
			reg = &amp;lt;0x20070000 0x8000&amp;gt;;
		};

		sram_ipc1: memory@20078000 {
			reg = &amp;lt;0x20078000 0x8000&amp;gt;;
		};
	};

	ipc {
		/delete-node/ ipc0;

		ipc0: ipc0 {
			compatible = &amp;quot;zephyr,ipc-openamp-static-vrings&amp;quot;;
			memory-region = &amp;lt;&amp;amp;sram_ipc0&amp;gt;;
			mboxes = &amp;lt;&amp;amp;mbox 0&amp;gt;, &amp;lt;&amp;amp;mbox 1&amp;gt;;
			mbox-names = &amp;quot;rx&amp;quot;, &amp;quot;tx&amp;quot;;
			role = &amp;quot;remote&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
		};

		ipc1: ipc1 {
			compatible = &amp;quot;zephyr,ipc-openamp-static-vrings&amp;quot;;
			memory-region = &amp;lt;&amp;amp;sram_ipc1&amp;gt;;
			mboxes = &amp;lt;&amp;amp;mbox 2&amp;gt;, &amp;lt;&amp;amp;mbox 3&amp;gt;;
			mbox-names = &amp;quot;rx&amp;quot;, &amp;quot;tx&amp;quot;;
			role = &amp;quot;remote&amp;quot;;
			zephyr,buffer-size = &amp;lt;2048&amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
	};


	/* The selected pins will be used by Distance Measurement module for debug purposes.
	 *
	 * Note: Pay attention to select the same GPIO pins
	 * in the application core DTS overlay&amp;#39;s gpio_fwd node.
	 */
	dm_gpio {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		dm_ranging: dm-ranging {
			gpios = &amp;lt;&amp;amp;gpio0 27 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;DM Ranging Pin&amp;quot;;
		};
		dm_add_request: dm-add-request {
			gpios = &amp;lt;&amp;amp;gpio0 26 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;DM Add request Pin&amp;quot;;
		};
	};
};

&amp;amp;uart0 {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;child_image/hci_ipc.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_DEVICE=y

CONFIG_UART_CONSOLE=n
CONFIG_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_LOG=n
CONFIG_PRINTK=n
CONFIG_ASSERT=n


CONFIG_TICKLESS_KERNEL=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sysbuild/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

#include &amp;lt;zephyr/dt-bindings/ipc_service/static_vrings.h&amp;gt;

/ {
	/* The timer instance to use. */
	chosen {
		ncs,dm-timer = &amp;amp;timer2;
	};

	chosen {
		/delete-property/ zephyr,ipc_shm;
	};

	reserved-memory {
		/delete-node/ memory@20070000;

		sram_ipc0: memory@20070000 {
			reg = &amp;lt;0x20070000 0x8000&amp;gt;;
		};

		sram_ipc1: memory@20078000 {
			reg = &amp;lt;0x20078000 0x8000&amp;gt;;
		};
	};

	ipc {
		/delete-node/ ipc0;

		ipc0: ipc0 {
			compatible = &amp;quot;zephyr,ipc-openamp-static-vrings&amp;quot;;
			memory-region = &amp;lt;&amp;amp;sram_ipc0&amp;gt;;
			mboxes = &amp;lt;&amp;amp;mbox 0&amp;gt;, &amp;lt;&amp;amp;mbox 1&amp;gt;;
			mbox-names = &amp;quot;rx&amp;quot;, &amp;quot;tx&amp;quot;;
			role = &amp;quot;remote&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
		};

		ipc1: ipc1 {
			compatible = &amp;quot;zephyr,ipc-openamp-static-vrings&amp;quot;;
			memory-region = &amp;lt;&amp;amp;sram_ipc1&amp;gt;;
			mboxes = &amp;lt;&amp;amp;mbox 2&amp;gt;, &amp;lt;&amp;amp;mbox 3&amp;gt;;
			mbox-names = &amp;quot;rx&amp;quot;, &amp;quot;tx&amp;quot;;
			role = &amp;quot;remote&amp;quot;;
			zephyr,buffer-size = &amp;lt;2048&amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
	};


	/* The selected pins will be used by Distance Measurement module for debug purposes.
	 *
	 * Note: Pay attention to select the same GPIO pins
	 * in the application core DTS overlay&amp;#39;s gpio_fwd node.
	 */
	dm_gpio {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		dm_ranging: dm-ranging {
			gpios = &amp;lt;&amp;amp;gpio0 27 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;DM Ranging Pin&amp;quot;;
		};
		dm_add_request: dm-add-request {
			gpios = &amp;lt;&amp;amp;gpio0 26 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;DM Add request Pin&amp;quot;;
		};
	};
};

&amp;amp;adc {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;pwm0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart2 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;i2c0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;i2c1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi2 {
    status = &amp;quot;disabled&amp;quot;;
};


&amp;amp;nfct {
    status = &amp;quot;disabled&amp;quot;;
};

&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;sysbuild/hci_ipc/prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y


CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512


# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does not follow normal flow control.
CONFIG_BT_BUF_CMD_TX_COUNT=10


# NRF RPC
CONFIG_NRF_RPC_THREAD_POOL_SIZE=2
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_CMSIS_THREAD_MAX_STACK_SIZE=8192
CONFIG_GPIO=y
CONFIG_SPI=y

CONFIG_PM_DEVICE=y


CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_LOG=n
CONFIG_PRINTK=n
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;main.c:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/** @file
 * @brief Nordic Distance Measurement sample
 */

#include &amp;lt;stdint.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;
#include &amp;lt;zephyr/sys/byteorder.h&amp;gt;

int main(void)
{

    sys_poweroff();
    while(1)
    {
        k_sleep(K_FOREVER);
    }
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;in the build config I am using as Base configuration: prj.conf and boards/nrf5340dk_nrf5340_cpuapp.conf&lt;br /&gt;as Extra Kconfig fragments: child_image/hci_ipc.conf&lt;br /&gt;as Base Devicetree overlay: app.overlay&lt;br /&gt;as Extra Devicetree overlays:&amp;nbsp;boards/nrf5340dk_nrf5340_cpuapp.overlay and&amp;nbsp;child_image/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I hope you can help me with this problem or provide a tested sample so that I can find out what my problem is.&lt;br /&gt;&lt;br /&gt;Thank you very much in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decrease Power Consumption on nRF5340 during distance measurement (dm) sample</title><link>https://devzone.nordicsemi.com/thread/557435?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 13:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c093a3-3b47-42f3-b08b-911ede23ae48</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can get significantly lower idle current consumption, down to a few micro amps in system on sleep mode. Could it be that you have only disabled UART in the application core, but not in the network core? If UART logging is enabled in the network core image, you need to disable it for the ipc_radio application that runs on the network core as well as for on your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>