<?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>[NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95303/ncs1-9-1-system-off-mode-abnormal-problem</link><description>Dear Support Team, I test system off mode under the following conditions: NCS1.9.1; nRF52840-DK and nRF52-DK; added dk_button_init initialization code in the system off example. After nRF52840-DK and or nRF52-DK burn compiled firmware, you can see the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Feb 2023 03:32:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95303/ncs1-9-1-system-off-mode-abnormal-problem" /><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/408163?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 03:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca9ad34-83a2-4dac-b335-cdb60e4f0246</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for your support, there are no problems under simple testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/407989?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 12:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d88a3e6e-fe66-4523-a515-d769025b4216</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So we finally got to the culprit.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The problem is that&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;em&gt; dk_buttons_and_leds.c&lt;/em&gt;&amp;nbsp;&lt;em&gt;&lt;/em&gt;does this little thing that when a button is pressed, it disables the interrupts, and manually scans the GPIOs to see when they are released. So if you are continuously pressing it,&amp;nbsp;or even holding it down, there does not seem to be a release and interrupt is disabled.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So you can have a small workaround by introducing a check to prevent the system from going into sleep. I will attach the modified code here. THe check is named keep_alive.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6165.system_5F00_off.zip"&gt;devzone.nordicsemi.com/.../6165.system_5F00_off.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/407893?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 07:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d63daa1-ecfb-4fce-bdf0-97e631340864</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Priyanka，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your support and look forward to your reply.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Zero&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/407889?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 06:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4af43a2-407d-4d50-b022-ebf9580c75e4</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delay. I have not forgotten it. I was actually trying out the code and looking for a solution. I am having some doubts. I will discuss with experts and update you today with a response.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/407202?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 01:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a28411e-f121-437c-80a2-4aa31d8eb96e</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any update on this question.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/404914?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 02:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aae4b67-e4f1-4236-82ae-c949bed0018b</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi ，&lt;/p&gt;
&lt;p&gt;Any update on this question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/404551?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 12:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b9a04a-1e90-4b5c-b671-7c87f952d5ad</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am looking into this and will get back to you soon. Sorry for the delay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/404437?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 02:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f66f56-828f-447d-9810-7a96e91b3582</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi ，&lt;/p&gt;
&lt;p&gt;Any update on this question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/403549?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 10:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21fae2cf-be74-47dc-98b7-a5f59484bafe</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;The problem can be reproduced by continuously pressing button1 for 2 minutes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/403543?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 10:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b51f948-564c-4af8-89ed-5dcf62758925</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems strange, as I am not able to reproduce this now. Maybe I am not understanding what you mean.&lt;/p&gt;
&lt;p&gt;When trying with your earlier code, I was able to reproduce this. When the button 1 was pressed continuously, the device freezes and I had to force restart it. Is this what your problem is even now?&lt;/p&gt;
&lt;p&gt;But in the modified sample that I shared, now pressing button 1 always helps. I&amp;#39;ll attach the output:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0882.pastedimage1673001166454v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When I press Button1, I get&amp;nbsp;&lt;strong&gt;*** Booting Zephyr OS build v2.7.99-ncs1-1 ***&lt;/strong&gt; always now.&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><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/403361?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 10:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a4dd9c1-a0a0-46b6-baa1-97ccde88a4a8</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Priyanka&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Download the zip file you attached, the problem still exists, the log is as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.99-ncs1-1  ***

nrf52dk_nrf52832 system off demo
Retained data not supported
Busy-wait 2 s
Busy-wait 2 s with UART off
Sleep 2 s
Sleep 2 s with UART off
Sleep 2 s
dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

Entering system off; press BUTTON1 to restart
*** Booting Zephyr OS build v2.7.99-ncs1-1  ***

nrf52dk_nrf52832 system off demo
Retained data not supported
Busy-wait 2 s
dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

Busy-wait 2 s with UART off
Sleep 2 s
dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

Sleep 2 s with UART off
Sleep 2 s
dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

dk_buttons_init -&amp;gt; button 1 pressed

Entering system off; press BUTTON1 to restart&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After the device is powered on, press button1 on the DK continuously and quickly, and the device cannot be woken up after seeing that the log does not output. This problem must arise.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Zero&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS1.9.1]System off mode abnormal problem</title><link>https://devzone.nordicsemi.com/thread/403355?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 10:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:069413ac-db50-4f6f-9b0c-3d4ae3d34d27</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. I have&amp;nbsp;attached a modified zip file. Please try this and let me know if you still face the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0726.system_5F00_off.zip"&gt;devzone.nordicsemi.com/.../0726.system_5F00_off.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>