<?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>nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108990/nrf52840-does-not-wake-up-on-gpio-interrupt</link><description>Hello 
 I have a very strange problem 
 A custom nRF52840 board has a charge detect pin, P1.6 
 A gpio callback is installed to wake it up on charger connect/disconnect 
 When the CPU is running this works like a charm 
 However if the CPU is powered</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jul 2025 09:42:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108990/nrf52840-does-not-wake-up-on-gpio-interrupt" /><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/543456?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 09:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e21994fe-f5f3-4b81-b5aa-28a1eeaf641a</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello Aasim,&lt;/p&gt;
&lt;p&gt;Could you please create a new ticket for your issue? This one seems quite old. Also, kindly include more details about the problem in the new ticket.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt; Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/543426?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 06:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2e2fd1-fe07-4ad2-a90a-e0d7321c1b9d</guid><dc:creator>Aasim_</dc:creator><description>[quote userid="6207" url="~/f/nordic-q-a/108990/nrf52840-does-not-wake-up-on-gpio-interrupt/472678"]&lt;span&gt;sense-edge-mask = &amp;lt;&lt;/span&gt;&lt;span&gt;bitmask_set_for_pin_used&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;[/quote]
&lt;p&gt;I&amp;#39;m having the same issue occuring with my custom board nrf52840 as Andy mentioned. my current sdk is ncs 3.0.1 but the issue was also in older sdks too.&lt;br /&gt;- I have tested this&amp;nbsp;&lt;span&gt;sense-edge-mask but it does not work for me.&lt;br /&gt;- When log are enabled and it is connected to jlink the issue never occurs.&lt;br /&gt;- I have a button on my board which wake up device from sys_poweroff(), Most of the time it wake up but sometimes its not.&lt;br /&gt;- Also device stuck device wakeup from watchdog reset.&lt;br /&gt;- Rest everything is same as Andy mentioned above.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/473454?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 13:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d043b517-9502-4a40-9fbd-924d68beecc6</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;I&amp;#39;ll try that as well. Although it&amp;#39;s going to be a pain since the api changed so much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/473352?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 08:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e72482d4-d04a-46b4-9f92-a5794c3a4f01</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hmm, that could be,&lt;/p&gt;
&lt;p&gt;Can you again flash your firmware with older sdk and see if the device wakes up? If yes, then I can focus my debugging direction on what new changes have been introduced for this in the newer sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/473336?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 07:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2324ee62-2a5f-429d-b184-930c123f8620</guid><dc:creator>Mercer</dc:creator><description>&lt;p&gt;I have the same issue on my custom board with Fanstel nrf52805 module.&amp;nbsp;Your solution is not working for me. My device &lt;strong&gt;sometimes&lt;/strong&gt; can&amp;#39;t wake from power-off. Can it be the bug in Zephyr&amp;#39;s new SDK? Cause in the previous version of the Zephyr like v2.4.2 I have never seen this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/473249?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 15:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c3833a9-d90e-4baf-a4e2-269ddde4005b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Not really, the rest of the code looks ok. Can you give me your project so that I can test it on my end?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/473231?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 14:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a968ca69-8111-4c46-83d6-caaf8fa67b29</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Any other suggestions?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/472763?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 14:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6102e99f-6074-4d61-bccf-38fc5291e79d</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;I have that set for both gpio0 and gpio1&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;status&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;sense-edge-mask&lt;/span&gt;&lt;span&gt; = &amp;lt;&lt;/span&gt;&lt;span&gt;0xffffffff&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 does not wake up on GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/472678?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 11:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d56e32f-4801-423d-a248-b073dd65bc28</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You might need to enable the sense mechanism for it in the device tree as initialized&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/gpio/gpio_nrfx.c#L462"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;probably add this in your custom_pins config and see if it helps&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;sense-edge-mask = &amp;lt;&lt;/span&gt;&lt;span&gt;bitmask_set_for_pin_used&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>