<?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>Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58747/issues-with-gpiote-interrupt</link><description>Hi we are having issues with gpiote interrupt. We would like to do some spi read when drdy gpio becomes high to low. I have done above configuration for the same. 
 We are using following set up 
 Segger Embedded studio. nRF5_SDK_15.2.0_9412b96 pca10056</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Mar 2020 13:40:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58747/issues-with-gpiote-interrupt" /><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/239741?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 13:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f434c29e-286e-42c6-b46f-48b6673aab93</guid><dc:creator>dkj047</dc:creator><description>&lt;p&gt;I had added nrfx_gpoite.c file in my project but i guess it was not getting compiled for some reason, thus the gpiote handler was missing, causing the interrupt to not work.&amp;nbsp; When i compiled the nrfx_gpiote.c file the interrupt started working.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/239105?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 12:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:764d89d4-5826-4ebe-9cad-cf150b0a9f3f</guid><dc:creator>dkj047</dc:creator><description>&lt;p&gt;Just wanted to add&amp;nbsp; pin_change_int example in the sdk SDK\nRF5_SDK_15.2.0_9412b96\examples\peripheral\pin_change_int is a good example for anybody to see how to implement interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/239103?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 12:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d8429c7-b5f4-41dd-8247-2e4f9f931be7</guid><dc:creator>dkj047</dc:creator><description>&lt;p&gt;Yes it worked for me too with original ble_app_mtu_throughput example. There might be some issues with my code although by comparing i am not able to figure out what was the issue. For now I will continue with my work but when i&amp;#39;ll have time, I&amp;#39;ll update what was the issue with my original code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks Vidar for time and patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/239095?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 12:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af75ac5e-113f-4222-8e4a-04e7b1e9bc8c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I meant to ask if the nrfx_gpiote_irq_handler() implementation was greyed out. Anyway, I added your code to the original throughput example in SDK 15.2.0 and it worked for me with the default sdk_config settings. Could you try to compare the project against yours?&lt;/p&gt;
&lt;p&gt;Example including the gpiote code you posted:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e19142a0c1c44a4faea97a44bbd6b192/ble_5F00_app_5F00_att_5F00_mtu_5F00_throughput.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_att_5F00_mtu_5F00_throughput.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/238761?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 10:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:437f14e9-f3be-4b73-97d9-1bc3be0c7d19</guid><dc:creator>dkj047</dc:creator><description>&lt;p&gt;In sdk_config.h GPIOTE_ENABLED is set 1 but the grey line appearing in above image is not shown for me. It is not stopping in nrfx_gpiote_irq_handler() when i try to pause code in debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/238725?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 08:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1efd072-f822-4d10-8ec1-186395464f16</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;IRQ #6 belongs to the GPIOTE so it looks like the GPIOTE handler has not been defined. Is &amp;#39;GPIOTE_ENABLED&amp;#39; enabled in sdk_config.h and does nrfx_gpiote.c::nrfx_gpiote_irq_handler() appear greyed out in SES?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e19142a0c1c44a4faea97a44bbd6b192/pastedimage1583741167615v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/238630?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2020 06:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01a6b905-3956-46fd-ac22-75986d682a04</guid><dc:creator>dkj047</dc:creator><description>&lt;p&gt;IRQ no. INTISR[6]&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1583562561548v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1583562503822v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with gpiote interrupt</title><link>https://devzone.nordicsemi.com/thread/238559?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 14:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ba71e1-b5f3-4643-be04-7db4c4a6aca6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try to read out the current ISR number from xpsr register when the program has ended up inside the Dummy handler. This will tell us what the interrupt source is. I included the screenshot below to illustrate what I mean. In this case, the IRQ number is 17, which if you look up in the nrf52840.h corresponds to&amp;nbsp;RTC1_IRQn.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e19142a0c1c44a4faea97a44bbd6b192/pastedimage1583504579548v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]We are not using any timer module for now but we might use this in future. So also&amp;nbsp; wanted&amp;nbsp; to know do we need to set different priority for gpiote interrupt and timer interrupt or is it not required.&amp;nbsp;[/quote]
&lt;p&gt;You can use the same priority for both. It is probably safer too. Note that all SDK modules use priority &amp;#39;6&amp;#39; by default.&amp;nbsp;&lt;/p&gt;
[quote user=""]How many gpiote channel can be used at once?[/quote]
&lt;p&gt;&amp;nbsp;It has 8 channels. So 8 channels.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>