<?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>Preparing Wakeup Buttons in BSP causes Automatic Reset After Shutdown</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51524/preparing-wakeup-buttons-in-bsp-causes-automatic-reset-after-shutdown</link><description>Hi, 
 I&amp;#39;ve been implementing the BSP functions on a 15 button custom device based off of the nRF52832 (in a BL652 Laird Module). At a minimum I need to be able to disconnect the BLE and sleep the device (System OFF Mode). Right now I have the BSP_EVENT_DISCONNECT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Aug 2019 13:33:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51524/preparing-wakeup-buttons-in-bsp-causes-automatic-reset-after-shutdown" /><item><title>RE: Preparing Wakeup Buttons in BSP causes Automatic Reset After Shutdown</title><link>https://devzone.nordicsemi.com/thread/206898?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 13:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e650e21c-3f10-48b7-99e2-75ad7bd49fc2</guid><dc:creator>BendaEng</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t reply yesterday when I figured it out. But you are exactly right, that was the issue. My circuitry was inverted from what BUTTONS_ACTIVE_STATE was set to. A button press on my circuit causes a low to high transition.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Preparing Wakeup Buttons in BSP causes Automatic Reset After Shutdown</title><link>https://devzone.nordicsemi.com/thread/206879?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 13:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14384641-e8ab-41de-8718-7965d03daf61</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just to make sure, have you verified that the&amp;nbsp;BUTTONS_ACTIVE_STATE value corresponds with your button circuitry? I.e.,&amp;nbsp;&amp;nbsp;&lt;span&gt;BUTTONS_ACTIVE_STATE&amp;nbsp;==0 if the button is active low and&amp;nbsp;BUTTONS_ACTIVE_STATE&amp;nbsp;==1 if active high? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That said, you don&amp;#39;t have to re-configure the input if it&amp;#39;s already configured with sense enabled which seems to be the case here. But you should do it for all of the other button inputs to avoid unintentional wakeups.&amp;nbsp;nrf_gpio_cfg_default() can be used for this. It will configure pins back to the reset state (input, disconnect).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>