<?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>nRF51822 s130 sd, external interrupt on cscs example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29661/nrf51822-s130-sd-external-interrupt-on-cscs-example</link><description>Hello, i am using SDK12.2.0 and SD s130 on a nRF51822 (AC) and i am trying to add an external interrupt on a pin in the cscs ble_peripheral example. The code i am using (and added to example) is this: 
 #include &amp;quot;app_gpiote.h&amp;quot;
#include &amp;quot;nrf_drv_gpiote</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 10:44:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29661/nrf51822-s130-sd-external-interrupt-on-cscs-example" /><item><title>RE: nRF51822 s130 sd, external interrupt on cscs example</title><link>https://devzone.nordicsemi.com/thread/117766?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 10:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02f71ca0-deba-4969-8e0a-9835dd61cdc1</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, It could be that one of the functions in gpio_init() returns an error and sends your code into an error handler function that resets your device. Have you tried &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;debugging like this&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;My bet is that you are using the BSP support package with app_button. That library uses GPIOTE as well and initializes the GPIOTE driver before you call gpio_init(). Since you are only allowed to initialize the GPIOTE driver with nrf_drv_gpiote_init() once, it returns an error sending your application into an endless circle of resets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>