<?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>Problem with GPIO events after wake up from deep sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124273/problem-with-gpio-events-after-wake-up-from-deep-sleep</link><description>Dear sir/madame I have a problem I hope you can help me with. SoC is nRF52840 SDK is SDK 17.1.0 
 Problem description: In my app I have two buttons defined; Button1 and Button2. Before I force the nRF52840 into deep sleep I define Button1 as wake up pin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Sep 2025 05:25:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124273/problem-with-gpio-events-after-wake-up-from-deep-sleep" /><item><title>RE: Problem with GPIO events after wake up from deep sleep</title><link>https://devzone.nordicsemi.com/thread/548303?ContentTypeID=1</link><pubDate>Wed, 10 Sep 2025 05:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a42c7e-95ef-47c7-91db-e8568cb21f62</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The GPIOTE ISR reads the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpio.html#ariaid-title11"&gt;LATCH&lt;/a&gt;&amp;nbsp;register to determine whether more than one&amp;nbsp;input triggered the PORT event. So the issue is likely that the bit for&amp;nbsp;SW1 was latched on wakeup. Calling&amp;nbsp;nrf_gpio_pin_latch_clear(SW1) on startup should fix this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>