<?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>GPIOTE interrupt not working with softdevice s130</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25105/gpiote-interrupt-not-working-with-softdevice-s130</link><description>I am using the template example for S130(works fine).
I tried adding a simple Pin interrupt on the code but it didn&amp;#39;t call the pin interrupt handler everytime I press the button. I believe I&amp;#39;m using some part of the peripherals that are restricted in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Sep 2017 02:05:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25105/gpiote-interrupt-not-working-with-softdevice-s130" /><item><title>RE: GPIOTE interrupt not working with softdevice s130</title><link>https://devzone.nordicsemi.com/thread/98865?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 02:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d1ee0ea-b8bd-4fbf-8b52-c5f1e31fe099</guid><dc:creator>Denver</dc:creator><description>&lt;p&gt;Thank you very much KPK. Your answer solved the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupt not working with softdevice s130</title><link>https://devzone.nordicsemi.com/thread/98863?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 07:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62d34aa4-cab3-403e-b69e-d1219aadc3e4</guid><dc:creator>Denver</dc:creator><description>&lt;p&gt;Hi KPK, what I did just now is to change my current code from PULLUP to PULLDOWN. Now my code is not working. I bet this solve the issue. I will try to use the previous routine if it will fix the problem. Thank you KPK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupt not working with softdevice s130</title><link>https://devzone.nordicsemi.com/thread/98864?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 07:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc7bd378-4d8d-420a-a1e5-79e9e8b2bf4a</guid><dc:creator>KPK</dc:creator><description>&lt;p&gt;I noticed that with the new routine you are initialising your button with a Pull up configuration whereas in the previous routine it was pull down. Was it intentional? Have you tried using your first routine with a pull up configuration?&lt;/p&gt;
&lt;p&gt;I had a look at the design files for PCA10040 board (assuming you use them) and the buttons are connected to ground already. If you use them in Pull down mode, the state never toggles and so no interrupt is generated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupt not working with softdevice s130</title><link>https://devzone.nordicsemi.com/thread/98862?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 07:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79606cf5-3dda-4ae7-a970-e4e7dea24a54</guid><dc:creator>Denver</dc:creator><description>&lt;p&gt;So I manage to solve my problem but using a different routine. Still please help me to understand further why the above code is not working. Anyway, below code is what I used to work with Pin Interrupt together with Softdevices.&lt;/p&gt;
&lt;p&gt;Update: Now, bot codes are working just by changing PULLDOWN to PULLUP.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;//Initialization	
uint32_t err_code;&lt;/p&gt;
&lt;p&gt;APP_GPIOTE_INIT(APP_GPIOTE_MAX_USERS); //   APP_GPIOTE_MAX_USERS = 1	
static app_button_cfg_t p_button[] = {{BUTTON_1, APP_BUTTON_ACTIVE_LOW, NRF_GPIO_PIN_PULLUP, in_pin_handler}};&lt;/p&gt;
&lt;p&gt;// Initializing the buttons.	
err_code = app_button_init (p_button, sizeof(p_button) / sizeof(p_button[0]), 10);	
APP_ERROR_CHECK(err_code);																&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;// Enabling the buttons.	
err_code = app_button_enable(); 	
APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupt not working with softdevice s130</title><link>https://devzone.nordicsemi.com/thread/98861?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 07:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f77ad82d-0322-4691-aa3b-d68330674e76</guid><dc:creator>Denver</dc:creator><description>&lt;p&gt;hi Petter, I am using SDK 14 and Softdevice S130. I manage to make the pin Interrupt works by using a different routine. Maybe right now, I want to understand why this code is not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupt not working with softdevice s130</title><link>https://devzone.nordicsemi.com/thread/98860?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 08:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20e64fd8-498e-4dfe-86f0-bc09e351c382</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Which SDK and SoftDevice version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>