<?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>Power Optimization</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110564/power-optimization</link><description>Hello, 
 I have investigated Zephyr&amp;#39;s power managemen API and have the a few questions regarding the nRF52840-DK. The nRF52840-DK was powered externally by the N6705B DC power analyzer (supply voltage of 3V) and the nRF_ONLY switch was enabled. 
 
 If</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2024 11:35:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110564/power-optimization" /><item><title>RE: Power Optimization</title><link>https://devzone.nordicsemi.com/thread/483012?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 11:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:636413e8-7d3a-4cf3-b33a-cadb04baf5b8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry. I don&amp;#39;t think we have any use cases for our current chips. I believe it is more suited for larger chips that have different power domains that needs to be handled in order to turn on certain peripherals, but that is not something we currently have.&lt;/p&gt;
&lt;p&gt;It will probably (but I am not sure) be more useful in the upcoming nRF54 series.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization</title><link>https://devzone.nordicsemi.com/thread/482962?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 08:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d20a3ebf-fff2-4fdc-ace6-da9afa9a8e00</guid><dc:creator>ATla5</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sry for my late reply. No, what I mean are &lt;a href="https://docs.zephyrproject.org/latest/services/pm/power_domain.html"&gt;power domains&lt;/a&gt;. Note, that the links provided by Zephyr are not working and the sample folder does not contain any examples. That is why I wanted to know if you can share a use case, where power domains are applicable.&lt;br /&gt;&lt;br /&gt;If not, then we can close this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization</title><link>https://devzone.nordicsemi.com/thread/481064?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 11:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4b6f0d-2f59-4072-96db-52ba63ff713a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello ATla5,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="ATla5"]&lt;p&gt;What do you think causes the&amp;nbsp;approximately 4µA difference&amp;nbsp; between measuring with the&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;Without being able to say exactly where, I believe what you are seeing is that some parts of the DK (such as the debugger) is being backpowered from the nRF when the DK is not powered separately. It will not be operational, but you will see some leak current, possibly through the UART pins.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;ul&gt;&lt;li&gt;As far a I am aware, Zephyr uses the low frequency clock automatically when it is in a low power mode. Can you confirm this?&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;Yes. It uses the LFCLK for timekeeping when it is sleeping.&lt;/p&gt;
[quote user=""]&lt;ul&gt;&lt;li&gt;May you explain why the I2C-Twim driver uses PM_DEVICE_RUNTIME feature and the UART does not (PM_DEVICE)?&amp;nbsp;&lt;br /&gt;When implementing a driver when should someone use the runtime version of the power mangement feauture? Does it depend on device usage or any hardware restriction?&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;I don&amp;#39;t know this. Perhaps because UART is the default backend for all printk() and logging (log module, such as LOG_INF()), which is why it is set up differently.&amp;nbsp;&lt;/p&gt;
[quote user=""]Can you share a sample or a scenario (block diagram) where an application should make use of the power domain feature of Zephyr? Since the&amp;nbsp;Thingy:53 offers additional peripheral circuits may you share how to make use of this feature with that hardware and why.[/quote]
&lt;p&gt;I am not sure I understand this question. Are you asking when you should power down peripherals? It depends. Some peripherals draw more current than others. The UART is an example of a peripheral that draws more power, because it will keep the HFCLK running (because you don&amp;#39;t know when the other device will transmit something, so it needs to be ready (it&amp;#39;s asynchronous). This is not the case with most other serial protocols, such as SPI. In this case, the slave can wake on the CS pin, and the master will be in control of the events, so it doesn&amp;#39;t need to keep the HFCLK when not in use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization</title><link>https://devzone.nordicsemi.com/thread/480836?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 08:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a118b5d-4cbe-42e9-939c-9471677c15e5</guid><dc:creator>ATla5</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;br /&gt;&lt;br /&gt;I have performed the following measurements again&lt;br /&gt;&lt;br /&gt;1. Measurement #01&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF52840-DK
&lt;ul&gt;
&lt;li&gt;SW6: DEFAULT&lt;/li&gt;
&lt;li&gt;J2 USB power supply&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;PPK2
&lt;ul&gt;
&lt;li&gt;Ampere meter mode&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;SW
&lt;ul&gt;
&lt;li&gt;suspends SPI and UART-0 (other peripherals disabled) and calls&amp;nbsp;&lt;span&gt;k_sleep(K_FOREVER)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Results:
&lt;ul&gt;
&lt;li&gt;average current consumption is&amp;nbsp;3.52&amp;micro;A&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;2. Measurement #02&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF52840-DK
&lt;ul&gt;
&lt;li&gt;SW6:&amp;nbsp;nRF_ONLY&lt;/li&gt;
&lt;li&gt;J2 USB power supply&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;PPK2
&lt;ul&gt;
&lt;li&gt;Ampere meter mode&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;SW
&lt;ul&gt;
&lt;li&gt;suspends SPI and UART-0 (other peripherals disabled) and calls&amp;nbsp;&lt;span&gt;k_sleep(K_FOREVER)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Results:
&lt;ul&gt;
&lt;li&gt;average current consumption&lt;span&gt;&amp;nbsp;&lt;/span&gt;is&amp;nbsp;3.54 &amp;micro;A&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What do you think causes the&amp;nbsp;approximately 4&amp;micro;A difference&amp;nbsp; between measuring with the&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PPK2 (measured at P22)&lt;/li&gt;
&lt;li&gt;N6705B (measured at P21)&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, do&amp;nbsp; you have an answer for points 4 to 6 of the original question?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;ATla5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization</title><link>https://devzone.nordicsemi.com/thread/480699?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 13:00:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff4cf1c0-49d9-49ad-b5d5-2bd326f7d5c0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I see that you edited the ticket after my reply, but I don&amp;#39;t have access to a changelog. I&amp;#39;ll await your reply before looking into this.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization</title><link>https://devzone.nordicsemi.com/thread/480624?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 09:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21512e2a-65ea-4071-b70b-dcdf3a018e87</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Atla5,&lt;/p&gt;
&lt;p&gt;Can you please try to power the DK like you would normally do (via the micro-USB port on J2), put the nRF_ONLY back to Default, and then try to measure the current on P22? Does the current consumption go down if you do that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>