<?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>nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89113/nrf5340-sdk-1-9-1-idle-mode-consumption-and-power-management</link><description>Problem: I see a constant 1.4-1.5mA power consumption that I am unable to explain, can;t reduce despite trying a few things and need help debugging further 
 SDK: 1.9.1 
 MCU: nrf5340 running at 128MHz (not the default 64MHz) 
 Board: custom with multiple</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Jul 2022 10:07:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89113/nrf5340-sdk-1-9-1-idle-mode-consumption-and-power-management" /><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/377814?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 10:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:091ee757-6352-4c25-b581-51a00d40c17f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you can&amp;#39;t find v1.9.2 it in the TCM, this is the way to upgrade in Windows&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;cd /nrf&lt;br /&gt;git fetch&lt;br /&gt;git checkout v1.9.2&lt;br /&gt;west update&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you don&amp;#39;t want to mess with the v1.9.1 ncs folders (which you&amp;#39;re using now), you can just install NCS v1.9.0 from TCM and run the above commands from there&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/377721?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 18:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddfacb75-fdf9-4e07-8d89-834146434513</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;Thank you.. &lt;br /&gt;&lt;br /&gt;I am unable to see an option install and try 1.9.2 from Toolchain manager.. as you know, 2.0.0 doesn&amp;#39;t seem to support SES (just installing that SDK seems to break all previous versions as i had tried it and quickly uninstalled the SDK) and I am at the EVT phase and don&amp;#39;t want to try anything adventurous at this time. I am also using toolchain manager v1.1.1&amp;nbsp;but I see 1.1.3 is available. could that be the reason why I don&amp;#39;t see 1.9.2 ? last time I upgraded TCM, it was a nightmare for a few days and hence trying to stick to what&amp;#39;s working :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/377583?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 10:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc7fee03-99d1-45fe-ac07-c0b75fc716ba</guid><dc:creator>Simon</dc:creator><description>[quote user="sshenoy105"]thank you for all your help.. while i wouldn&amp;#39;t say this has been completely resolved, all your inputs were very useful and helped..[/quote]
&lt;p&gt;I&amp;#39;m happy to help :)&lt;/p&gt;
[quote user="sshenoy105"]I will file new tickets [/quote]
&lt;p&gt;Thanks&lt;/p&gt;
[quote user="sshenoy105"]As you know, your ticket search is fairly horrible :-)[/quote]
&lt;p&gt;You could also try to search using Google, using this approach:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:60px;max-width:640px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1280x120/__key/communityserver-discussions-components-files/4/pastedimage1658225924104v1.png" /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Please also check out NCS v1.9.2 (or NCS v2.0.0), where an issue was fixed that caused HF clock to stay active, which caused an increased current consumption.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/1ae47b06abb2ecc567f64844db9f0147fb873186#diff-6d407a77922a4d622d288c698bbdd11187fe0d4975764b0a82fa52f9a3e7b9f4R82"&gt;https://github.com/nrfconnect/sdk-nrf/commit/1ae47b06abb2ecc567f64844db9f0147fb873186#diff-6d407a77922a4d622d288c698bbdd11187fe0d4975764b0a82fa52f9a3e7b9f4R82&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/377261?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 21:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a102f7dc-54e3-47a1-b907-61754780bb3d</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;thank you for all your help.. while i wouldn&amp;#39;t say this has been completely resolved, all your inputs were very useful and helped.. I will file new tickets .. Only reason i wanted to continue here is o be useful for many others who will have similar power consumption questions and hence will have one place to look at. As you know, your ticket search is fairly horrible :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/377260?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 21:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0520bd-957c-4646-bed0-789e8b828dc9</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;ok&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/376471?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 14:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078668df-d76a-4e76-a467-bf3724631825</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m happy you found one cause of the high current consumption.&lt;/p&gt;
[quote user="sshenoy105"]I do have a few more things to check.. I am doubting I2C current (when not doing transactions) is not as low as what&amp;#39;s mentioned in the nrf5340 spec and will disable them while not in use and enable only when needed and see if that helps[/quote]
&lt;p&gt;Would you be able to open a new ticket about this? I know that this question is still in in-scope of this ticket, but I see that this ticket is starting to get quite long and unorganized, also current consumption is not my expertise, so if you open a new ticket it will get assigned to an engineer with more knowledge about this. A huge part of the support team are on vacation, so&amp;nbsp;it may take a little longer time than usual before you get a reply.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/376469?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 14:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63feb73-6cee-4c00-b628-1cf5fff9f2dd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Sorry for the delay. A huge part of the support team are on summer vacation and you may expect delays.&lt;/p&gt;
&lt;p&gt;I was not able to reproduce this. I added the following to zephyr/samples/hello_world/prj.conf (NCS v2.0.0):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM=y
CONFIG_PM_DEVICE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also added the following &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.0.99-ncs1/drivers/serial/uart_nrfx_uarte.c#L1868"&gt;under #ifdef CONFIG_PM_DEVICE=y in uart_nrfx_uarte.c&lt;/a&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;∗&lt;/strong&gt;&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#error &amp;quot;CONFIG_PM_DEVICE is enabled!!&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and when building the sample, this error message popped up.&lt;/p&gt;
&lt;p&gt;I also saw&amp;nbsp;CONFIG_PM_DEVICE=y in zephyr/samples/hello_world/build/zephyr/.config&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;∗&lt;/strong&gt;&lt;/span&gt;For uart0, the driver uart_nrfx_uarte.c will be used by default, this is because the compatible field in the uart0 node is set to&amp;nbsp;&lt;span&gt;&lt;em&gt;&amp;quot;nordic,nrf-uarte&amp;quot;&lt;/em&gt; by default. See&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/5247ee9a7a4dfa1021c364214d1cf7abff071405/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi#L85"&gt;zephyr/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi#L85&lt;/a&gt;. Also the nRF5340 does not have a UART peripheral, only &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fuarte.html&amp;amp;cp=3_0_0_6_37"&gt;UARTE&lt;/a&gt;&amp;nbsp;(the nRF52840 for example, has both &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uart.html?cp=4_0_0_5_32"&gt;UART&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uarte.html?cp=4_0_0_5_33"&gt;UARTE&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The difference between UART and UARTE is that UARTE uses EasyDMA. Read more in&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/62055/uart-and-uarte-difference"&gt;UART and UARTE difference&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/376275?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 18:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01025fb6-39cf-45ba-a38e-6bb7e213f5c1</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;one more weird thing i noticed..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;v1.9.1\zephyr\drivers\serial\uart_nrfx_uart.c&lt;/p&gt;
&lt;p&gt;in line #1147.. CONFIG_PM_DEVICE seems to be not enabled while proj.conf has it enabled (and i see it enabled in other modules)..&amp;nbsp;This is ok if UART is disabled but useful when we need som eprints and the ability to shut UART down&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;had to replace the #ifdef CONFIG_PM_DEVICE with #if 1&lt;/p&gt;
&lt;p&gt;//#ifdef CONFIG_PM_DEVICE&lt;br /&gt;#if 1&lt;br /&gt;static int uart_nrfx_pm_action(const struct device *dev,&lt;br /&gt; enum pm_device_action action&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/376091?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 23:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:158b30cd-db50-49b7-a32e-c38368ee1a9c</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;found one issue that seems to help get better power numbers.. we use SPI4 to access our NAND chip and looks like CS (SS) was low even when SPI4 is uninitialized.. Since our Nand is powered all the time, this CS staying low seems to trigge tit to some kind of active mode and henc etalke almost 500uA extra current.&amp;nbsp; Checked SPI code..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Found that SPI uninit API from Nrf SDK doesn&amp;#39;t configure the CS (SS) pin to pull up .. needed SDK change&amp;nbsp;in the function&amp;nbsp;&lt;br /&gt;spi uninit with CS pull up&lt;br /&gt;void nrfx_spim_uninit(nrfx_spim_t const * p_instance) in C:\ncs\v1.9.1\modules\hal\nordic\nrfx\drivers\src\nrfx_spim.c&lt;br /&gt; if (p_cb-&amp;gt;ss_pin != NRFX_SPIM_PIN_NOT_USED)&lt;br /&gt; {&lt;br /&gt; //nrf_gpio_cfg_default(p_cb-&amp;gt;ss_pin);&lt;br /&gt; nrf_gpio_cfg_spi(p_cb-&amp;gt;ss_pin);&amp;nbsp; ----&amp;gt; newly added&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;new api nrf_gpio_cfg_spi in C:\ncs\v1.9.1\modules\hal\nordic\nrfx\hal\nrf_gpio.h &lt;br /&gt;NRF_STATIC_INLINE void nrf_gpio_cfg_spi(uint32_t pin_number)&lt;br /&gt;{&lt;br /&gt; nrf_gpio_cfg(&lt;br /&gt; pin_number,&lt;br /&gt; NRF_GPIO_PIN_DIR_INPUT,&lt;br /&gt; NRF_GPIO_PIN_INPUT_DISCONNECT,&lt;br /&gt; NRF_GPIO_PIN_PULLUP,&lt;br /&gt; NRF_GPIO_PIN_S0S1,&lt;br /&gt; NRF_GPIO_PIN_NOSENSE);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Checked with the probe that this ensure CS stays high.. and now i see my baseline current below 500uA..&lt;br /&gt;&lt;br /&gt;I do have a few more things to check.. I am doubting I2C current (when not doing transactions) is not as low as what&amp;#39;s mentioned in the nrf5340 spec and will disable them while not in use and enable only when needed and see if that helps&lt;br /&gt;&lt;br /&gt;I confirm that k_cpu_idle gets called but given only way to confirm that was using the debugger, I didn&amp;#39;t bother checking the power numbers..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/375268?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 09:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e09357-adbd-4552-a36a-1db36aa014c1</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry to hear about that. Feel free to open a new ticket about that issue, or engage in&amp;nbsp;&amp;nbsp;(Missing Forum Thread)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374973?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 18:32:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd17ef27-5eb0-41ee-99e6-2bded4e29367</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;Unfortunately,&amp;nbsp; I was stupid enough to trust &amp;quot;Tool chain manager&amp;quot; update and updated.. now my environment is broken as observed by many in the community and plenty of tickets flying around exactly &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/89489/nrf-connect-for-desktop-toolchain-manager-experienced-an-unrecoverable-error-v1-1-0" rel="noopener noreferrer" target="_blank"&gt;like this one&lt;/a&gt;.. so can&amp;#39;t do much.. I really&amp;nbsp;have&amp;nbsp; no idea why do you guys do this to us :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374966?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 16:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1acfa490-11f4-4bb6-b1db-b6262f05ac60</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I ran the hello_world sample with nrf5340dk_nrf5340_cpuapp&amp;nbsp;with the following modification&amp;nbsp;in idle.c--&amp;gt;idle():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (pm_system_suspend(_kernel.idle) == false) {
	printk(&amp;quot;pm_system_suspend() returned false&amp;quot;);
	k_cpu_idle();
}else{
	printk(&amp;quot;pm_system_suspend() returned true&amp;quot;);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I disabled UART/serial logging and used RTT instead&lt;/p&gt;
&lt;p&gt;I saw that&amp;nbsp;&amp;quot;pm_system_suspend() returned false&amp;quot; was printed, which means that k_cpu_idle() will run and put the system to System ON sleep.&lt;/p&gt;
&lt;p&gt;Do you see the same? Even in the case where pm_system_suspend() does not&amp;nbsp;suspend the system (returns false), the k_cpu_idle() should still be called and put the chip into system ON sleep (2-3uA).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374803?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2022 20:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ccf7a6-4d5b-4a0b-b980-bde35f12fb34</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;@simon,&amp;nbsp;&lt;br /&gt;I use the same board files as nrf5340dk.. a few pins are modified using overlay..&amp;nbsp;&lt;br /&gt;i put a few prints and can confirm that we never enter idle..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;No suitable power state found for cpu: 0!&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;----&amp;gt;from&amp;nbsp;struct pm_state_info pm_policy_next_state(uint8_t cpu, int32_t ticks)&lt;br /&gt;&lt;strong&gt;No PM operations done. id 0&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;---&amp;gt; from function&amp;nbsp;bool pm_system_suspend(int32_t ticks) in pm.c&lt;br /&gt;&lt;strong&gt;suspend failed&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;---&amp;gt; added this line in idle.c&amp;nbsp;if (pm_system_suspend(_kernel.idle) == false)&lt;br /&gt;&lt;br /&gt;why would this be ? in the zephyr.dts file created after build, i don;t see any entries for&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;cpu-power-states&amp;nbsp;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&amp;nbsp;&lt;strong&gt;min-residency-us&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;which is needed by PM to go to low power modes..&lt;br /&gt;&lt;br /&gt;Can you please help me understand this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374426?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 01:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43308eec-2eb1-40cf-8c05-7f49611837d7</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;@simon,&amp;nbsp; &lt;br /&gt;I use the same board files as nrf5340dk.. a few pins are modified using overlay..&amp;nbsp;&lt;br /&gt;i put a few prints and can confirm that we never enter idle..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;No suitable power state found for cpu: 0!&lt;/strong&gt; ----&amp;gt;from&amp;nbsp;struct pm_state_info pm_policy_next_state(uint8_t cpu, int32_t ticks)&lt;br /&gt;&lt;strong&gt;No PM operations done. id 0&lt;/strong&gt; ---&amp;gt; from function&amp;nbsp;bool pm_system_suspend(int32_t ticks) in pm.c&lt;br /&gt;&lt;strong&gt;suspend failed&lt;/strong&gt; ---&amp;gt; added this line in idle.c&amp;nbsp;if (pm_system_suspend(_kernel.idle) == false)&lt;br /&gt;&lt;br /&gt;why would this be ? in the zephyr.dts file created after build, i don;t see any entries for &lt;strong&gt;cpu-power-states&amp;nbsp;&lt;/strong&gt; or&amp;nbsp;&lt;strong&gt;min-residency-us&lt;/strong&gt; which is needed by PM to go to low power modes..&lt;br /&gt;&lt;br /&gt;Can you please help me understand this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374203?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 16:31:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:045eda29-e3a0-40a1-8aed-fe869a11903b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I provided you some answers to more of your questions. However, since my reply ended up in the middle of the reply-stack, you might not notice it. So I&amp;#39;m referring to it here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/290899#permalink=768551"&gt;https://devzone.nordicsemi.com/support-private/support/290899#permalink=768551&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374202?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 16:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15092269-ad78-4f09-bc2c-01793818438d</guid><dc:creator>Simon</dc:creator><description>[quote user="sshenoy105"]By default, the high voltage regulator is configured to also source external components from the VDD pin. To save power this feature should be disabled. For details, see&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/regulators.html#hv"&gt;High voltage mode&lt;/a&gt;[/quote]
&lt;p&gt;I think what is meant by this is that normal voltage mode uses less power than high voltage mode. If you aren&amp;#39;t using VDD as power, or if you already have an external regulator on the board you can enable normal voltage. To enable normal voltage mode, you connect VDD to VDDH (so that VDD equals VDDH), then the high voltage regulator (VREGH) will be bypassed.&lt;/p&gt;
&lt;p&gt;Read more about voltage modes here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/supply/doc/power_supply.html?cp=3_0_0_3_4"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/supply/doc/power_supply.html?cp=3_0_0_3_4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/regulators.html?cp=3_0_0_3_6"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/regulators.html?cp=3_0_0_3_6&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
[quote user="sshenoy105"]All regulators operate in LDO mode by default. DC/DC mode can be enabled independently for each regulator.&amp;nbsp; The advantage of using a regulator in DC/DC mode is that the overall power consumption is reduced.[/quote]
&lt;p&gt;See&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72855/how-to-turn-on-nrf5340-dcdc"&gt;How to turn on nrf5340 DCDC&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374034?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 22:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:052cca7e-b1d3-431b-ad2b-609a79f740dc</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;you may have missed this in my cluster of replies.. can you please respond to the following ?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;While I wait for any further help, I have couple of questions.. looking at this&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs" rel="noopener noreferrer" target="_blank"&gt;post&lt;/a&gt;, especially the following: Can you please let me know what Zephyr/Nrf APIs to use to achieve what ever is being recommended as they seem worth trying&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;By default, the high voltage regulator is configured to also source external components from the VDD pin. To save power this feature should be disabled. For details, see&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/regulators.html#hv"&gt;High voltage mode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;All regulators operate in LDO mode by default. DC/DC mode can be enabled independently for each regulator.&amp;nbsp; The advantage of using a regulator in DC/DC mode is that the overall power consumption is reduced.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/374001?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 15:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6560b4f5-c789-413e-b216-bcbb20e1e4c8</guid><dc:creator>Simon</dc:creator><description>[quote user="simoniversen"]I will do some testing tomorrow and upload a new hex f[/quote]
&lt;p&gt;Okay, now I created a hex file, based on the hello_world with CONFIG_SERIAL=n.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I executed these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run&amp;nbsp;&lt;code&gt;nrfjprog --recover --coprocessor CP_NETWORK&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;amp;&amp;amp;&amp;nbsp;nrfjprog&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt;recover&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;nrfjprog --program app_core_image2.hex --chiperase&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;I have attached&amp;nbsp;&lt;span&gt;app_&lt;/span&gt;&lt;span&gt;core_image2&lt;/span&gt;&lt;span&gt;.hex&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;If --coprocessor is not specificed it will program to app core by default&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Run&amp;nbsp;&lt;code&gt;nrfjprog --pinreset&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_core_5F00_image2.hex"&gt;devzone.nordicsemi.com/.../app_5F00_core_5F00_image2.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do the same on your end, and let me know you result. Then we can continue searching for the cause.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/373800?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 01:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb35aaa-9880-4aab-8c4f-2f9cca6d62ea</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;while I wait for any further help, I have couple of questions.. looking at this &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs" rel="noopener noreferrer" target="_blank"&gt;post&lt;/a&gt;, especially the following: Can you please let me know what Zephyr/Nrf APIs to use to achieve what ever is being recommended as they seem worth trying&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;By default, the high voltage regulator is configured to also source external components from the VDD pin. To save power this feature should be disabled. For details, see&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/regulators.html#hv"&gt;High voltage mode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;All regulators operate in LDO mode by default. DC/DC mode can be enabled independently for each regulator.&amp;nbsp; The advantage of using a regulator in DC/DC mode is that the overall power consumption is reduced.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/373550?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 22:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63619e8-ce90-4f0b-8634-a8fd7a31d324</guid><dc:creator>Simon</dc:creator><description>[quote user="sshenoy105"]I will also try a few things with one of the examples like you mentioned and see .. hello world as is with no changes except CONFIG_SERIAL=n should consume less than 3 uA on nordic 5340 DK right ?[/quote]
&lt;p&gt;Yes,&amp;nbsp;that is correct, program the hello world sample (with CONFIG_SERIAL=n) to the application core. However, if stuff is running on the netcore, that may consume current. Try erasing both of the cores before programming the hello world sample:&amp;nbsp;&lt;code&gt;&lt;span&gt;nrfjprog --recover --coprocessor CP_NETWORK&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&amp;nbsp;nrfjprog&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt;recover&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;However, if you have added a custom board folder, you might have enabled Kconfigs there that causes a high current consumption, so I can&amp;#39;t say for certain that hello world with uart disabled will be sufficient. I will do some testing tomorrow and upload a new hex file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/373547?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 22:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c06b149c-a6f7-435d-8cd1-e7088c741fa2</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;strong&gt;Also, between Bluetooth events the chip goes into System ON sleep. What is your floor current? Could you check if it&amp;nbsp;enters System ON sleep (2-3 uA) between peripheral and Bluetooth events/interrupts?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;I was around 1.4mA.. Last night, I did find an issue with our touch controller power saving mode fixing which saved me about 200uA.. my floor is close to 1.2mA right now.. One strange thing is this floor remains the same when UART is enabled or not which i fid a bit suspect..&lt;br /&gt;&lt;br /&gt;I am not expecting anywhere near 2-3uA given all my components and their quiescent&amp;nbsp;currents.. In fact, at least two of my components are always on.. I am trying to understand why i see suspend failed print (when i enable prints) a and make sure no matter what cpu goes to sleep when it is supposed to..&lt;br /&gt;&lt;br /&gt;I will also try a few things with one of the examples like you mentioned and see .. hello world as is with no changes except CONFIG_SERIAL=n should consume less than 3 uA on nordic 5340 DK right ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/373526?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 16:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e6aaea-9d9d-4f05-9cf7-981191c1c2bf</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If your goal is to find the cause of the high current consumption I would recommend you to start with a really simple sample. For example the hello_world sample with CONFIG_SERIAL=n in prj.conf. Erase both of the cores and program the sample. Then you should se a current of around 2-3 uA. Using this approach you can easily figure out if the high current consumption is due to the firmware or the custom board&lt;/p&gt;
&lt;p&gt;The hex file in the initial reply was copied from an older ticket I handled, and I&amp;nbsp;think it was ahello world sample with CONFIG_SERIAL=n.&amp;nbsp;I re-test this tomorrow and upload a new hex file to be certain.&lt;/p&gt;
&lt;p&gt;So if you still see a high current consumption with this ample, you&amp;nbsp;know the custom hardware is the cause.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Questions&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have some knowledge about current consumption, but I&amp;#39;m not an expert. But I will answer the questions I know the answer to and ask some colleagues about the rest tomorrow.&lt;/p&gt;
[quote user=""]1a. FPU is ON.. does it make any difference (we need it and hence can&amp;#39;t turn it off)..&amp;nbsp;[/quote]
&lt;p&gt;Will get back to you about this&lt;/p&gt;
[quote user=""]1b: shutting UART off should reduce power by 500uA right ? or is it more ?&amp;nbsp;[/quote]
&lt;p&gt;Yes, that is correct, it will consume around 500uA. Remember to disable it (set CONFIG_SERIAL=n) in all child images. In addition to the ones you mentioned, it may be b0n (netboot, which is a bootloader for netcore) or b0 (secure bootloader for appcore).&lt;/p&gt;
[quote user=""]3. do we have to add&amp;nbsp;&lt;span&gt;CONFIG_PM=y&amp;nbsp; and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_PM_DEVICE=y to mcuboot and hci_rpmsg conf files too ? I haven&amp;#39;t tried it yet&lt;/span&gt;[/quote]
&lt;p&gt;As far as I&amp;#39;m aware, it should not be necessary to set these for the child images. I will test this tomorrow and get back to you.&lt;/p&gt;
&lt;p&gt;In the main application, CONFIG_PM should be enabled by default, and I don&amp;#39;t think you necessarily need to set CONFIG_PM_DEVICE=y&amp;nbsp;to decrease the current consumption, unless you want to use the&amp;nbsp;&lt;span&gt;pm_device_action_run() function (with this function you can enable UART in prj.conf, and disable it in the application when it&amp;#39;s not used).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Actually Zephyr will handle almost everything regarding current consumption, and you don&amp;#39;t need to do too much. The most important thing is to&amp;nbsp;disabe UART. When the CPU is not doing any work, the idle thread will run and the chip will go into System ON sleep (2-3uA).&amp;nbsp; All the peripherals, except UART I think, will release the HFCLK when they&amp;#39;re idle (even if &lt;span&gt;CONFIG_PM_DEVICE=n&lt;/span&gt;). Also, between Bluetooth events the chip goes into System ON sleep. What is your floor current? Could you check if it&amp;nbsp;enters System ON sleep (2-3 uA) between peripheral and Bluetooth events/interrupts?&lt;/p&gt;
&lt;p&gt;I will get back to you about the rest of the questions tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/373325?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 23:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:682347ef-e468-496f-ba10-550a68356c47</guid><dc:creator>sshenoy105</dc:creator><description>&lt;p&gt;Thank you for getting back quickly.. I flashed the images you attached.. I see a current consumption of 540-580uA&amp;nbsp; on my board.. I can look at that and see what&amp;#39;s consuming this (assuming your image put the system to sleep)..&lt;/p&gt;
&lt;p&gt;but would appreciate your responses to my questions/concerns&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SDK  1.9.1 idle mode consumption and power management</title><link>https://devzone.nordicsemi.com/thread/373244?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 12:53:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e87e581c-aef0-41ad-95e9-df55a2880849</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Before looking into all your questions, try the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run&amp;nbsp;&lt;code&gt;nrfjprog --recover --coprocessor CP_NETWORK&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;amp;&amp;amp;&amp;nbsp;nrfjprog&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt;recover&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;nrfjprog --program app_core_image.hex --chiperase&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;I have attached&amp;nbsp;&lt;span&gt;app_&lt;/span&gt;&lt;span&gt;core_image&lt;/span&gt;&lt;span&gt;.hex&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;If --coprocessor is not specificed it will program to app core by default&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Run&amp;nbsp;&lt;code&gt;nrfjprog --pinreset&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After I completed these steps I saw a current of 2.5uA on the nRF5340 DK&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7180.app_5F00_core_5F00_image.hex"&gt;devzone.nordicsemi.com/.../7180.app_5F00_core_5F00_image.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>