<?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>Sleep Mode and consumption issue nRF5340 with ncs 2.7.0 and sysbuild</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119207/sleep-mode-and-consumption-issue-nrf5340-with-ncs-2-7-0-and-sysbuild</link><description>Hi, 
 I face a 3mA consumption while I have CONFIG_PM=y and wether or not I have CONFIG_PM_DEVICE=y. 
 
 The idle thread is reached and executed : 
 
 And the idle thread takes 89% of the time : 
 
 What am I missing? 
 Thank you for your help</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Mar 2025 16:18:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119207/sleep-mode-and-consumption-issue-nrf5340-with-ncs-2-7-0-and-sysbuild" /><item><title>RE: Sleep Mode and consumption issue nRF5340 with ncs 2.7.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/528449?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 16:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb1cb4f8-0525-46b0-8757-d6ea081c8e99</guid><dc:creator>Ben_Squar3d</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The reason I had 300uA was because I was waking up every 10ms. When I wake up only when needed, I have expected current consumption. I wanted to be sure it was not uart before trying to disable it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep Mode and consumption issue nRF5340 with ncs 2.7.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/527155?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 12:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3642118-2d61-47c3-a989-c55ec9a98e3a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benoit,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First thing first we need to verify that you can see low power consumption with your setup.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please try testing with the attached&amp;nbsp;hex files (peripheral_lbs with minimum setting)&amp;nbsp; and let us know if you see the board advertising and you see low sleep current as shown in the picture:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1741867392553v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_core.hex"&gt;devzone.nordicsemi.com/.../app_5F00_core.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/net_5F00_core.hex"&gt;devzone.nordicsemi.com/.../net_5F00_core.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Could you state which SDK version&amp;nbsp; you are using ? If you test using&amp;nbsp;&lt;span&gt;DEVICE_DT_GET&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;DT_NODELABEL&lt;/span&gt;&lt;span&gt;(uart0));&amp;nbsp;&lt;/span&gt;in other sample that use UART do you see the same problem ? If you don&amp;#39;t please show us your board files.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you simply set the uart0 status=disabled do you see the power consumption reduced ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep Mode and consumption issue nRF5340 with ncs 2.7.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/527136?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 11:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8543f4d4-d414-4395-b902-36d2536197f7</guid><dc:creator>Ben_Squar3d</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_PM=y is not available in nrf5340. Unfortunately, I was basing myself on an outdated doc (which seems to be redundand unfortunately)&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs?CommentId=ae95c50b-10df-43ad-938f-ac5b9f33677a"&gt;Optimizing Power on nRF5340 SoC Designs - Blogs - Nordic Blog - Nordic DevZone&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s been a year since someone in another ticket evoke the need to update this documentation.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, the reason was that I had&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;I added&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SERIAL&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;It is better, now I have around 300uA, which is still too much.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I try to disable the uart&amp;nbsp;and I face strange behavior.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;this doesn&amp;#39;t compile :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;in main.c&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/pm/device.h&amp;gt;

static const struct device *sUartDev = DEVICE_DT_GET(DT_NODELABEL(uart0));

later in the main : 

pm_device_action_run(sUartDev,PM_DEVICE_ACTION_SUSPEND);&lt;/pre&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;It gives&amp;nbsp;undefined reference to `__device_dts_ord_105&amp;#39;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If I replace uart0 by any peripheral I have (gpio0, spi4 ...) it compiles.&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;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;in my board file, I have :&amp;nbsp;&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;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;uart0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;status&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;current-speed&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;115200&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;pinctrl-0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;uart0_default&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;pinctrl-1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;uart0_sleep&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;pinctrl-names&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;default&amp;quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;quot;sleep&amp;quot;&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;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you for your help&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep Mode and consumption issue nRF5340 with ncs 2.7.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/524363?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 14:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6f2eb8e-23cc-46bb-8784-6fe28cf82e4c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benoit,&amp;nbsp;&lt;br /&gt;Could you try to verify that the chip show expected power consumption number when testing with a BLE sample in the SDK ?You should see a few uA between the spikes of BLE activities.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what I can see it can be that the chip didn&amp;#39;t enter sleep mode due to debug mode turned on. Please make sure you are not running the chip in debug when testing. Have you turned off thread_analyzer when testing ?&lt;br /&gt;&lt;br /&gt;If you do see the chip enter sleep mode when measuring with a stock BLE sample, my suggestion for testing is to try turn off the functionality in your code one by one to see which module cause the issue.&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>