<?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>GPIO wake up doesn&amp;#39;t work on nRF52-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85998/gpio-wake-up-doesn-t-work-on-nrf52-dk</link><description>Hello, I am using nRF52-DK with Segger Embedded Studio and I&amp;#39;m running the following code that first blinks the LED1 on&amp;amp;off 5 times, and sets up BUTTON1 for wake up, and then enters system off mode. 
 
 If I run the example, it does seem to eventually</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 15:52:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85998/gpio-wake-up-doesn-t-work-on-nrf52-dk" /><item><title>RE: GPIO wake up doesn't work on nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/360364?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 15:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d08c3f-a591-423e-9dd5-e6c9c7048401</guid><dc:creator>bko</dc:creator><description>&lt;p&gt;I changed sd_power_system_off() to&amp;nbsp;nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF);&lt;/p&gt;
&lt;p&gt;Now it resets on button press! Although I&amp;#39;m not sure why the other way of&amp;nbsp;going to sleep didn&amp;#39;t function, but anyway :)&lt;/p&gt;
&lt;p&gt;Thank you and best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO wake up doesn't work on nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/360224?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 10:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e7416a-de5c-4368-9716-b68c1600ae80</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this.&lt;/p&gt;
[quote user="bko"]I&amp;#39;m only running this using Segger Embedded Studio by pressing &amp;quot;Build and run&amp;quot;, so I don&amp;#39;t know how to make sure this runs outside debug mode?[/quote]
&lt;p&gt;Thank you for confirming this, this should then run outside of a debug session.&lt;br /&gt;Following the build and run option you should press the reset button or power cycle the board, to start the flashed application. Could you also confirm to have done this?&lt;/p&gt;
[quote user="bko"]Which uses sense_set instead of sense_input function. I tried it but I still cannot make it wake up by pressing BUTTON 1.[/quote]
&lt;p&gt;Yes, it should be sufficient to set the sense on a button before going to sleep.&lt;br /&gt;Are you getting any errors, or otherwise unexpected behavior from your application, or is it just that nothing happens when you press button 1? For good measure, could you confirm for me which pin&amp;nbsp;BUTTON_1 is defined to, and whether or not there has been made any hardware changes to the DK you are working with?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO wake up doesn't work on nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/359199?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 15:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72286912-f0b8-4917-8d8d-b21364da6bb8</guid><dc:creator>bko</dc:creator><description>&lt;p&gt;I&amp;#39;m only running this using Segger Embedded Studio by pressing &amp;quot;Build and run&amp;quot;, so I don&amp;#39;t know how to make sure this runs outside debug mode?&lt;/p&gt;
&lt;p&gt;I looked at ble_app_uart and&amp;nbsp;from what I see all it does can be distilled to something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_gpio_cfg_sense_set(BUTTON_1, NRF_GPIO_PIN_SENSE_LOW);
sd_power_system_off();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which uses sense_set instead of sense_input function. I tried it but I still cannot make it wake up by pressing BUTTON 1.&lt;br /&gt;Only hope I see right now is to try make sure I can run this outside debug mode if that&amp;#39;s what&amp;#39;s causing it not to work.&lt;/p&gt;
&lt;p&gt;Any suggestion appreciated,&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO wake up doesn't work on nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/359052?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 09:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8db5959-4028-477a-a686-2d8b7244effe</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]If I run the example, it does seem to eventually enter system off mode because nrf_gpio_pin_clear(LED_1) doesn&amp;#39;t get executed (light stays on after having blinked 5 times on&amp;amp;off).[/quote]
&lt;p&gt;Are you running this within a debugging session? If so, the deep sleep mode will not work correctly because the debugger will not let the device go into actual system_off.&lt;br /&gt;Furthermore, no LEDs or other peripherals may be on while the device is in SYSTEM_OFF, so this indicates that it has in fact not entered system off successfully.&lt;/p&gt;
[quote user=""]What can I do to test out this functionality on nRF52-DK?[/quote]
&lt;p&gt;I would recommend going through the sleep_mode_enter function of the BLE peripheral examples from the nRF5 SDK to see how this can be implemented.&lt;br /&gt;For instance, you could see how SYSTEM_OFF sleep is entered in the advertising IDLE event of the ble_app_uart example.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>