<?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>[NCS v2.6.1] Issue with build (&amp;quot;/soc/pwm@4001c000 defined without sleep state&amp;quot;)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114090/ncs-v2-6-1-issue-with-build-soc-pwm-4001c000-defined-without-sleep-state</link><description>Hello Nordic, 
 
 I want to power down (at the lowest power consumption state as possible) all the peripherlas. 
 Already checked below ticket. 
 
 Below ticket also referenced for turn off peripherals required to reduce power for not using ones. 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2024 10:50:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114090/ncs-v2-6-1-issue-with-build-soc-pwm-4001c000-defined-without-sleep-state" /><item><title>RE: [NCS v2.6.1] Issue with build ("/soc/pwm@4001c000 defined without sleep state")</title><link>https://devzone.nordicsemi.com/thread/499519?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 10:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c89ee7c-225a-4923-ab5f-50dd85486219</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s right, the&amp;nbsp;sys_poweroff() powers down the CPU and the peripherals such that your device is in the lowest power state. It helps to save maximum energy.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NRF_POWER-&amp;gt;SYSTEMOFF is more of a lower hardware specific way of using the sys_poweroff()and should do the same. But please note that actually it&amp;#39;s only the CPU that is powered off, but since the CPU controls the power state of the peripherals, then the peripherals are shut down too.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Calling the sys_poweroff() is the&amp;nbsp;right approach when you want minimal consumption when in battery charging state. But please make sure that the charger and other components responsible for the charging are on an independent power rail so that they are not affected by the system-off mode.&lt;/p&gt;
&lt;p&gt;-Priyanka&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.6.1] Issue with build ("/soc/pwm@4001c000 defined without sleep state")</title><link>https://devzone.nordicsemi.com/thread/499277?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 21:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aea50941-ff46-4576-9c6d-314c83f54855</guid><dc:creator>Robotics Gun</dc:creator><description>&lt;p&gt;Appreciate!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Compile works without the error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One more question.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I&amp;nbsp;execute below api, it will power down not only the cpu but also the whole peripherlas?&lt;/p&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;sys_poweroff();&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Below code seems only shundown the CPU not the whole peripherlas.&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Enter system off mode
NRF_POWER-&amp;gt;SYSTEMOFF = 0x1;&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;If the answer is &amp;quot;yes&amp;quot;, calling sys_poweroff() is right approach when battery charging state and it would makes for charger to approach I_term as soon as possible.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.6.1] Issue with build ("/soc/pwm@4001c000 defined without sleep state")</title><link>https://devzone.nordicsemi.com/thread/499177?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 08:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d58fc7ff-1eac-4a82-85fb-b9b36c67500e</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You might be getting this error because I see that you have not defined any sleep state for the pwm in the dts file. You need to specify a sleep state too, say,&lt;/p&gt;
&lt;p&gt;&amp;amp;pwm0 {&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;amp;pinctrl {&lt;br /&gt; &lt;br /&gt; ...&lt;br /&gt; &lt;br /&gt; pwm0_default: pwm0_default {&lt;br /&gt; group1 {&lt;br /&gt; psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 22)&amp;gt;,&lt;br /&gt;/* Other configurations */&lt;br /&gt; };&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;pwm0_sleep: pwm0_sleep {&lt;/p&gt;
&lt;p&gt;group1 {&lt;/p&gt;
&lt;p&gt;psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0xFFFFFFFF)&amp;gt;,&lt;/p&gt;
&lt;p&gt;/* Other configurations */&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>