<?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>Regarding usage of power management config files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73464/regarding-usage-of-power-management-config-files</link><description>Hi, 
 I am using nrf5340 kit. I would like to enable and test power management in mesh chat example. 
 1. Can you please tell me the usage of below config file usage. 
 #define CONFIG_PM 1 #define CONFIG_PM_DEEP_SLEEP_STATES 1 
 #define CONFIG_HAS_POWER_STATE_DEEP_SLEEP_1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Apr 2021 07:48:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73464/regarding-usage-of-power-management-config-files" /><item><title>RE: Regarding usage of power management config files</title><link>https://devzone.nordicsemi.com/thread/303654?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 07:48:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9508b83b-d2e8-4adc-b3aa-92e57f737413</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m not sure what exact information you&amp;#39;re after, but it is stated as follows in the nRF53430 Product Specification:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;System ON sleep:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;In System ON, all functional blocks, such as the CPU and peripherals, can be in an idle or run state depending on the configuration set by the software and the state of the executing application. The network core&amp;#39;s CPU and peripherals can be in an idle state, run state, or Force-OFF mode (see&amp;nbsp;&lt;a title="Force-OFF is only applicable for the network core." href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/pmu/doc/pmu.html?cp=3_0_0_3_0#unique_169820857"&gt;Force-OFF mode&lt;/a&gt;).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The PMU can switch the appropriate internal power sources on and off, depending on how much power is needed at any given time. The power requirement of a peripheral is directly related to its activity level, which increases and decreases when specific tasks are triggered or events are generated.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;System OFF sleep:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;System OFF is the deepest power-saving mode the system can enter. In this mode, the system&amp;#39;s core functionality is powered down and all ongoing tasks are terminated.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The device can be put into System OFF mode using the register&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/regulators.html#register.SYSTEMOFF"&gt;SYSTEMOFF&lt;/a&gt;&amp;nbsp;. The following signals/actions cause a wakeup from System OFF:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;The DETECT signal, generated by the GPIO peripheral&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;The ANADETECT signal, generated by the LPCOMP peripheral&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;The SENSE signal, generated by the NFCT peripheral to wake-on-field&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;A valid USB voltage on the VBUS pin is detected&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;A debug session is started&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;A pin reset&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;When the device wakes up from System OFF, a system reset is performed. For more details, see&amp;nbsp;&lt;a title="Application core reset behavior depends on the reset source." href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/reset/doc/reset.html#reset_behavior"&gt;Application core reset behavior&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;One or more RAM sections can be retained in System OFF depending on the RAM retention settings in the peripheral&amp;nbsp;&lt;a title="VMC provides power control for RAM blocks." href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/vmc.html#frontpage_vmc"&gt;VMC — Volatile memory controller&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Before entering System OFF, all on-going EasyDMA transactions should be completed. This is accomplished by making sure that the EasyDMA enabled peripheral is not active when entering System OFF. It is also recommended that the network core is in an idle state (i.e. peripherals are stopped and CPU is idle).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;2. Please check out the examples in the nRFConnect SDK, as this is dependent on the application.&lt;/p&gt;
&lt;p&gt;3. Force OFF mode is used by the application core to force the Network core to Force-OFF mode.&amp;nbsp;Yes, this will be called by the application core and stop the network core.&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: Regarding usage of power management config files</title><link>https://devzone.nordicsemi.com/thread/303344?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 06:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b31179f-a84c-4959-88c3-a18db7baf191</guid><dc:creator>Priyadharshini</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;1.&amp;nbsp; Can you please tell me how the following power management is handled in nf5340&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1. System on sleep&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. System off sleep&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;2.&amp;nbsp; &amp;nbsp;Also tell me the APIs involved during system on and system off.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; 3. Is force off state will be used in application core.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding usage of power management config files</title><link>https://devzone.nordicsemi.com/thread/303340?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 06:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45165913-3530-4605-b11d-5fbc7a929dff</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, NCS is the only SDK solution we have that supports NRF5340, so we don&amp;#39;t have any power management (example or library) outside of the Zephyr RTOS.&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: Regarding usage of power management config files</title><link>https://devzone.nordicsemi.com/thread/303240?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2743b5f-a9d8-4a17-abb2-3c51c7efec2a</guid><dc:creator>Priyadharshini</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; 4 a) Can you please tell me the power management in nrf5340 possible w&lt;span style="font-family:inherit;"&gt;ithout&amp;nbsp; using Zephyr rtos&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding usage of power management config files</title><link>https://devzone.nordicsemi.com/thread/303211?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:05:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94c889e8-0d8a-4ab7-bd87-5137a820d322</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_PM.html?highlight=config_pm#cmdoption-arg-CONFIG_PM"&gt;CONFIG_PM is explained here&lt;/a&gt;. As for&amp;nbsp;&lt;span&gt;CONFIG_HAS_POWER_STATE_DEEP_SLEEP_1&amp;nbsp;and&amp;nbsp;CONFIG_PM_DEEP_SLEEP_STATES, where did you find these? Can you provide some information on this, as I didn&amp;#39;t find any reference to these defines in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/index.html"&gt;Zephyr&lt;/a&gt;, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html"&gt;KConfig &lt;/a&gt;or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html"&gt;NCS documentation.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. This depends on what project you&amp;#39;re using. Typically you&amp;#39;ll need to use constant latency only if for instance you need to take an action within &amp;lt;1us, the current consumption will be higher in constant latency mode. In low power mode, the current consumption is a very few uA and is the common usage for any battery powered product.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Please check out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/power_management/index.html?highlight=power%20management"&gt;power management subsystem in Zephyr&lt;/a&gt;&amp;nbsp;and NCS power manager module&amp;nbsp;documentation for more information on this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a) Is what required in Zephyr RTOS for initialization? I&amp;#39;m afraid I don&amp;#39;t understand the question?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;b) How clock control is done in and between the two cores on the nRF53 is done in the Power Management Unit inside the SoC. &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fchapters%2Fpmu%2Fdoc%2Fpmu.html"&gt;Please see the Power and Clock management section in the PS for details.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;c) Yes, only the network core will have access to the radio peripheral in nRF53, and in most cases (unless the application is very simple) the application core will need to run the actual application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. I don&amp;#39;t think this would be a config file, but rather a call to a task waking the device up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;6. See links in question 3.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>