<?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 ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114907/ncs-zephyr-the-nrf52840-cannot-wake-up-from-deep-sleep</link><description>Using the nRF52840 with NCS v2.6.1, I want to put the device into a low-power sleep state during idle time. Before sleeping, I configured a GPIO interrupt as the wake-up source, and then I call sys_poweroff(); to enter deep sleep mode. The issue I&amp;#39;m facing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Sep 2024 17:36:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114907/ncs-zephyr-the-nrf52840-cannot-wake-up-from-deep-sleep" /><item><title>RE: (NCS ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/thread/503827?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 17:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b61a788-31eb-4b26-a78c-af9d36aa32bf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The pleasure is all mine.&lt;/p&gt;
[quote user="Mr.tang"]Wishing you a happy life![/quote]
&lt;p&gt;Thank you so much, and the same to you!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you run into any issues or have any questions, feel free to ask!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (NCS ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/thread/503738?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 11:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74c22742-2d28-4dff-93e5-9c262468163e</guid><dc:creator>Mr.tang</dc:creator><description>&lt;p&gt;Thank you very much for your answer. Wishing you a happy life!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (NCS ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/thread/503687?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2ff2041-3bdf-4ed5-8e5a-311ba8e0fdc4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The DETECT signal is what is triggered by a PORT event. When you configure a gpio with _LOW or _HIGH wake up source, you are effectively setting the&amp;nbsp;SENSE field in this register:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpio.html#ariaid-title13"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpio.html#ariaid-title13&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which again will trigger the DETECT signal if a SENSE configured GPIO is active:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpiote.html#ariaid-title3"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpiote.html#ariaid-title3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (NCS ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/thread/503682?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d29d8fe-33c7-4a2b-ae8d-36c8b896336e</guid><dc:creator>Mr.tang</dc:creator><description>&lt;p&gt;Hello! I apologize for the interruption again. According to the NRF52840 manual, the DETECT signal generated by the GPIO can be used to wake up the device (1. The DETECT signal, optionally generated by the GPIO peripheral. 2. PORT is an event that can be generated from multiple input pins using the GPIO DETECT signal). Could you please advise if Zephyr supports waking the device with the DETECT signal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (NCS ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/thread/503526?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2024 09:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d90cfdc-9527-4453-ab3e-33ab26db80fd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear that this solved your issue. Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (NCS ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/thread/503472?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2024 21:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94c6a9f4-dd3d-4ef9-89fe-4b257f20ced0</guid><dc:creator>Mr.tang</dc:creator><description>&lt;p&gt;Thank you very much for your reply; it is indeed as you said regarding this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (NCS ZEPHYR) The nRF52840 cannot wake up from deep sleep.</title><link>https://devzone.nordicsemi.com/thread/503416?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2024 13:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:844e84bf-ea74-4f04-8543-6aed3fc06d5a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried the&amp;nbsp;zephyr/samples/boards/nrf/system_off sample to see if that works as expected?&lt;/p&gt;
&lt;p&gt;To configure a wake-up source, it should be defined as a _LOW or _HIGH level, like done here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1/samples/boards/nrf/system_off/src/main.c#L55"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1/samples/boards/nrf/system_off/src/main.c#L55&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it is set as edge-triggered, it will default to using GPIOTE IN channel, which is not active in system off.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>