<?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>Use keypad for wakeup (kbd_matrix) from deep sleep (sys_poweroff)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119958/use-keypad-for-wakeup-kbd_matrix-from-deep-sleep-sys_poweroff</link><description>I am having issues using a keypad to wakeup an nrf52840 and am unclear on if the GPIO sample is relevant if using a kbd_matrix device definition. I would like to use &amp;quot;sys_poweroff()&amp;quot; for power savings but have not been able to wake it up again. Is it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Apr 2025 13:57:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119958/use-keypad-for-wakeup-kbd_matrix-from-deep-sleep-sys_poweroff" /><item><title>RE: Use keypad for wakeup (kbd_matrix) from deep sleep (sys_poweroff)</title><link>https://devzone.nordicsemi.com/thread/532037?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 13:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d36384bd-1fb0-4be6-8f35-038bc64aa05b</guid><dc:creator>Crox</dc:creator><description>&lt;p&gt;Apologies, somewhere between posts my prj.conf had reverted.&amp;nbsp; The above suggestion from &lt;a href="https://devzone.nordicsemi.com/members/kme"&gt;Kenneth&lt;/a&gt;&amp;nbsp;works.&amp;nbsp; Ensure prj.conf has:&lt;br /&gt;&lt;br /&gt;CONFIG_PM=y&lt;br /&gt;CONFIG_PM_DEVICE=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use keypad for wakeup (kbd_matrix) from deep sleep (sys_poweroff)</title><link>https://devzone.nordicsemi.com/thread/531899?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 18:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1354b375-3b28-47d8-b387-beba0166ebd2</guid><dc:creator>Crox</dc:creator><description>&lt;p&gt;Hello Kenneth - sorry for the very long delay on this response.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I have added the suggested sense-edge-mask and still do not wake up the device.&amp;nbsp; The kbd_matrix is same as before.&amp;nbsp; I have gpio1 as:&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;=&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; &lt;/span&gt;&lt;span&gt;=&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;span&gt;// Set to &amp;quot;1&amp;quot; for those pins that are used for interrupt and wakeup.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use keypad for wakeup (kbd_matrix) from deep sleep (sys_poweroff)</title><link>https://devzone.nordicsemi.com/thread/528271?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 16:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae36ecb9-4ea4-4439-b8af-7a60a92143e6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not sure what you mean by overload, but I can&amp;#39;t think of reasons that this should fail no, unless the changes occur so fast that they are simply missed by the software.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use keypad for wakeup (kbd_matrix) from deep sleep (sys_poweroff)</title><link>https://devzone.nordicsemi.com/thread/528232?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 13:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb21340d-4c84-4638-9505-fdf2d24fd2e5</guid><dc:creator>Crox</dc:creator><description>&lt;p&gt;Sure, I can try.&amp;nbsp; One point of clarification, I have no other GPIO except for gpio1 as described for the keymap.&amp;nbsp; Is it possible to overload them in this way?&amp;nbsp; At runtime I would just define it as interrupt?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use keypad for wakeup (kbd_matrix) from deep sleep (sys_poweroff)</title><link>https://devzone.nordicsemi.com/thread/528228?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 13:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b45b89d-fd77-445c-af45-c78d34ed0686</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For low power interrupt and wakeup, I recommend to use sense-edge-mask for those pins, e.g.:&lt;/p&gt;
&lt;p&gt;&amp;amp;gpio0 { // Depend on the port.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; ...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sense-edge-mask = &amp;lt;0xFFFFFFFF&amp;gt;; // Set to &amp;quot;1&amp;quot; for those pins that are used for interrupt and wakeup.&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;Can you try this?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>