<?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>gpio interrupt with ble</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30413/gpio-interrupt-with-ble</link><description>hi hi ; 
 i&amp;#39;m trying to control gpio pin 20 with my smart phone and with event at gpio pin 5 (when the state of the pin 5 changes the gpio pin 20 toggeles ) but my problem is when i add the function gpio_init() the ble stops working . 
 any help will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Feb 2018 09:04:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30413/gpio-interrupt-with-ble" /><item><title>RE: gpio interrupt with ble</title><link>https://devzone.nordicsemi.com/thread/120677?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 09:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d195803-a816-415e-bf78-a5abbd61c4fe</guid><dc:creator>james tech</dc:creator><description>&lt;p&gt;the problem is solved thank you for your help&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gpio interrupt with ble</title><link>https://devzone.nordicsemi.com/thread/120655?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 07:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3232981e-f353-46fa-8d55-2a30e353a4fd</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It is usually done like this in the SDK:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;err_code = nrf_drv_gpiote_in_init(PIR, &amp;amp;config, in_pin_handler); 
APP_ERROR_CHECK(err_code) &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gpio interrupt with ble</title><link>https://devzone.nordicsemi.com/thread/120628?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 21:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5b65dc6-3d94-4e4d-8449-e8558d8d37d5</guid><dc:creator>james tech</dc:creator><description>&lt;p&gt;i didn&amp;#39;t do that , how can i check the return of the function as you know i&amp;#39;m using pca 20006 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gpio interrupt with ble</title><link>https://devzone.nordicsemi.com/thread/120622?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 19:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26481517-f626-47f2-bbbc-8ceb12f91819</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Have you checked the return code of&amp;nbsp;nrf_drv_gpiote_in_init(PIR, &amp;amp;config, in_pin_handler) with&amp;nbsp;APP_ERROR_CHECK(err_code) at line 278?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gpio interrupt with ble</title><link>https://devzone.nordicsemi.com/thread/120618?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 18:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb487635-5e37-4409-8c3d-97dd834e0cbe</guid><dc:creator>james tech</dc:creator><description>&lt;p&gt;yeh i have already debugged the code there is no problem with the gpio_read () and when i add it the nrf51822 stops advertising&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gpio interrupt with ble</title><link>https://devzone.nordicsemi.com/thread/120607?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 16:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39ee796-6576-48bd-b5e2-32cdb91cc2cf</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]when i add the function gpio_init() the ble stops working [/quote]
&lt;p&gt;Have you debugged? This is most likely because your code asserts inside gpio_init(). If you debug and step through that function you might find valuable clues regarding what goes wrong.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>