<?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>Why does the gpio pin not retain the previously set state when the system is in shutdown mode (PM_STATE_SOFT_OFF)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106389/why-does-the-gpio-pin-not-retain-the-previously-set-state-when-the-system-is-in-shutdown-mode-pm_state_soft_off</link><description>Hi! 
 Specifically when I set pinLdo low before entering system shutdown mode, but in fact pinLdo pulled up after entering that mode. When the chip has not entered the system shutdown state (PM_STATE_SOFT_OFF), I can still set the high or low level of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Dec 2023 15:26:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106389/why-does-the-gpio-pin-not-retain-the-previously-set-state-when-the-system-is-in-shutdown-mode-pm_state_soft_off" /><item><title>RE: Why does the gpio pin not retain the previously set state when the system is in shutdown mode (PM_STATE_SOFT_OFF)?</title><link>https://devzone.nordicsemi.com/thread/459409?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 15:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aef0da89-d12f-47e4-8157-8d1d8b83f4b9</guid><dc:creator>Dinh Son</dc:creator><description>&lt;p&gt;Thank you for your early response&lt;br /&gt;I am using manage sdks v2.4.2, manage toolchains v2.4.2. It doesn&amp;#39;t seem to have sys_poweroff(), I tried it and it didn&amp;#39;t work.&lt;br /&gt;This is my code when I try to make gpio ldo at a low level before entering the system off state (PM_STATE_SOFT_OFF), but when entering the system off state (PM_STATE_SOFT_OFF), gpio ldo is at a high level, not as expected. early setup.&lt;br /&gt;Can you give me some suggestions?&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ring.zip"&gt;devzone.nordicsemi.com/.../ring.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does the gpio pin not retain the previously set state when the system is in shutdown mode (PM_STATE_SOFT_OFF)?</title><link>https://devzone.nordicsemi.com/thread/459401?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 15:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c89488d-dd94-4238-80ca-a0c26dbc8114</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Dinh Son"]I am using the nrf5340 raytak board with zephyr sdk[/quote]
&lt;p&gt;So you are not using the nRF Connect SDK? If you are using NCS, what version are you running? I&amp;#39;m not familiar with this board and will need to investigate more.&amp;nbsp;&lt;/p&gt;
[quote user="Dinh Son"]Do you have any way I can keep gpio state while system is off until it is rebooted[/quote]
&lt;p&gt;This should be retained by device itself. Please note that in our latest version of NCS, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/services/poweroff.html#power-off"&gt;we have introduced Power Off&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does the gpio pin not retain the previously set state when the system is in shutdown mode (PM_STATE_SOFT_OFF)?</title><link>https://devzone.nordicsemi.com/thread/459400?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 15:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3438da91-217d-478d-a0dd-e00ccdb212ae</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Dinh Son"]I am using the nrf5340 raytak board with zephyr sdk[/quote]
&lt;p&gt;So you are not using the nRF Connect SDK? If you are using NCS, what version are you running? I&amp;#39;m not familiar with this board and will need to investigate more.&amp;nbsp;&lt;/p&gt;
[quote user="Dinh Son"]Do you have any way I can keep gpio state while system is off until it is rebooted[/quote]
&lt;p&gt;This should be retained by device itself. Please note that in our latest version of NCS, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/services/poweroff.html#power-off"&gt;we have introduced Power Off&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does the gpio pin not retain the previously set state when the system is in shutdown mode (PM_STATE_SOFT_OFF)?</title><link>https://devzone.nordicsemi.com/thread/459220?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 15:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:377e48e0-c7b8-4932-8b5c-da3043a46944</guid><dc:creator>Dinh Son</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;pre class="tw-data-text tw-text-large JgzqYd RES9jf tw-ta" dir="ltr" data-ved="2ahUKEwij2YySifuCAxUasFYBHUHmB9AQ3ewLegQIARAR"&gt;&lt;span class="Y2IQFc" lang="en"&gt;I am using the nrf5340 raytak board with zephyr sdk, I put the board into system off state and gpio Ldo at low level before entering that state, but when entering system off state, gpio Ldo has been brought to high level. It seems that it cannot maintain the state it was set before the system shutdown. Do you have any way I can keep gpio state while system is off until it is rebooted&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large JgzqYd RES9jf tw-ta" dir="ltr" data-ved="2ahUKEwij2YySifuCAxUasFYBHUHmB9AQ3ewLegQIARAR"&gt;&lt;span class="Y2IQFc" lang="en"&gt;Besides, I tried using the vom clock to measure the logic level of the gpio Ldo. After the system turned off, it was pulled at a high level.&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large JgzqYd RES9jf tw-ta" dir="ltr" data-ved="2ahUKEwij2YySifuCAxUasFYBHUHmB9AQ3ewLegQIARAR"&gt;&lt;span class="Y2IQFc" lang="en"&gt;The purpose is to save energy&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does the gpio pin not retain the previously set state when the system is in shutdown mode (PM_STATE_SOFT_OFF)?</title><link>https://devzone.nordicsemi.com/thread/459216?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 14:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17ddb9ef-b0c1-4cae-b6c6-b6296b8f26d3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please provide more details on what you are trying to achieve? With what application are you testing?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>