<?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>Manage power state using interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73217/manage-power-state-using-interrupt</link><description>I&amp;#39;m using this code to handle interrupt and power down the device. However, this code is not working the softdevice. 
 
 I just want to power on and power off using an interrupt signal.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Mar 2021 09:25:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73217/manage-power-state-using-interrupt" /><item><title>RE: Manage power state using interrupt</title><link>https://devzone.nordicsemi.com/thread/301828?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 09:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90052f5-8288-46e5-8c33-73904933cfa1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, the code in buttons_leds_init() was likely overriding your pin configuration.&lt;/p&gt;
&lt;p&gt;&amp;quot;4B01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ldr r3&amp;quot; is just a line of assembly code and it could be anywhere in your program. Either way,&amp;nbsp; please confirm that GPIOTE_CONFIG_IRQ_PRIORITY is set to &amp;#39;6&amp;#39; in your sdk_config header. Calliong sd_app_evt_wait() from a high priority interrupt will lead to a fault exception.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manage power state using interrupt</title><link>https://devzone.nordicsemi.com/thread/301791?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 10:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18fe494e-e67f-4bfa-8e67-6407637fd4ee</guid><dc:creator>PSPL </dc:creator><description>&lt;p&gt;Yes it is.&lt;br /&gt;&lt;br /&gt;The interrupt did work, but i had to comment out the following code in ble_uart example&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void buttons_leds_init(bool * p_erase_bonds)
{
    bsp_event_t startup_event;

    //uint32_t err_code = bsp_init(BSP_INIT_LEDS | BSP_INIT_BUTTONS, bsp_event_handler);
   // APP_ERROR_CHECK(err_code);

    //err_code = bsp_btn_ble_init(NULL, &amp;amp;startup_event);
  //  APP_ERROR_CHECK(err_code);

    *p_erase_bonds = (startup_event == BSP_EVENT_CLEAR_BONDING_DATA);
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The buttons_leds_init(&amp;amp;erase_bonds); was being called from the main function.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m try to put system to sleep. I tried following commands -&amp;nbsp;sd_app_evt_wait(), or&amp;nbsp;nrf_pwr_mgmt_run()&lt;/p&gt;
&lt;p&gt;and trying to wake up the system using interrupt. But as I use any of this function it am being thrown to&amp;nbsp;&amp;nbsp; &amp;nbsp; 4B01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ldr r3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manage power state using interrupt</title><link>https://devzone.nordicsemi.com/thread/301790?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 11:57:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c676920-cee8-42cf-af42-7b0e1c749d64</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The code looks correct. Is input_pin_handle() being called when you press the button?&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>