<?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>Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7122/help-with-ble-gpiote-interrupts-with-s110-on-nrf51</link><description>Hello 
 I&amp;#39;m having difficulty in executing an GPIOTE interrupt during a BLE connection event with the nRF51 DK. The interrupt I have works fine when the softdevice is advertising, but as soon as the it connects to another device the interrupt fails to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2016 14:28:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7122/help-with-ble-gpiote-interrupts-with-s110-on-nrf51" /><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25164?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 14:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b0b4201-cba5-48ad-a95d-c30ec1c76d9c</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;That worked for me ! Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25161?ContentTypeID=1</link><pubDate>Thu, 21 May 2015 06:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b68a78a8-9be7-4161-821f-c123a4bf84a3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;can you please accept the answer, so we can close this case&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25160?ContentTypeID=1</link><pubDate>Thu, 21 May 2015 00:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a65eb4b-283a-40c2-a045-31d06dc1d387</guid><dc:creator>kilianod</dc:creator><description>&lt;p&gt;Thanks for your help, I got it working by removing the APP_GPIOTE functions from the BLE connection since I wasn&amp;#39;t using them. Everything works fine now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25159?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 18:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74abd45a-ee58-44f2-88ea-95048dc6f48e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think it is used for your buttons code inside bsp.c-&amp;gt;app_buttons.c file. I think buttons are used to wakeup your device, after it goes to sleep after a certain amount of time of advertisement and if no connection is made.
But your main problem you said was the your GPIOTE interrupt was not fired correctly, Removing the irq handler from app_gpiote should not cause this. Check inside app_gpiote when it enables and disables the interrupt, check if that it interfering with logics. I recommend you to comment out app_gpiote and buttons logic completely to check if that helps. If it helps then your logic and app_gpiote are having conflicts&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25158?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 17:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd72c182-1ab7-4bdd-9380-b83e84ab2a50</guid><dc:creator>kilianod</dc:creator><description>&lt;p&gt;Thanks for clearing that up. My code is based off the BLE UART example in Version 8.0 of the SDK, I assume the following two lines in the BLE initialization code are using the GPIOTE handler, what do these functions do?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS,   APP_TIMER_OP_QUEUE_SIZE, false); 
 APP_GPIOTE_INIT(APP_GPIOTE_MAX_USERS);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25157?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 08:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea08608-dc79-4f51-8550-3255a0308826</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This is not the correct way to do it. I am not sure where you are using app_gpiote here, but it wont function at all without that handler. Yo need to merge these two handlers into one if you have to use app_gpiote along with your use case&lt;/p&gt;
&lt;p&gt;update:
No, you dont need app_gpiote for BLE connections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25163?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 18:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ffff9f-d18c-4820-b538-956d1403d732</guid><dc:creator>kilianod</dc:creator><description>&lt;p&gt;Hi Krzysztof
I tried that also but it didd&amp;#39;nt make a difference. Should I use that command before or after I initialize the BLE?
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25165?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 18:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e0caa1-e62f-4671-b85d-54bb6ebf0c92</guid><dc:creator>kilianod</dc:creator><description>&lt;p&gt;Hi Aryan
Yes, I removed the GPIOTE_IRQHandler in the app_gpiote.c file and replaced it with my own function. Was this the correct thing to do to use GPIOTE_IRQHandler? Do I actually need app_gpiote for BLE connections?
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25162?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 11:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3a6c5c-93f7-4f64-b7b5-39d87f437a9e</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Don&amp;#39;t see priority setting of GPIOTE interrupt. Default priority is the highest (0) so it may conflict with SoftDevice. Try calling something like:&lt;/p&gt;
&lt;p&gt;NVIC_SetPriority(GPIOTE_IRQn, APP_IRQ_PRIORITY_LOW);&lt;/p&gt;
&lt;p&gt;You can also try to use nrf_drv_gpiote driver (present in SDK 8.1) or app_gpiote.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with BLE GPIOTE Interrupts with S110 on nRF51</title><link>https://devzone.nordicsemi.com/thread/25156?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 10:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8add89e0-1157-473b-a08a-f3b419c8b3b4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There is one GPIOTE_IRQHandler in app_gpiote.c file, did you modify that to support your app use case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>