<?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>nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56990/nrf52-dk-gpiote-interrupt-stops-working-after-approx-400ms-after-startup</link><description>I am using SDK 15.3, SES 4.30 and softdevice 132 with the ble_app_uart_c as the core functionality for my system. 
 I&amp;#39;ve read many dev support threads about this issue and most seem to point to using high accuracy with GPIOTE. I have high accuracy enabled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2020 17:31:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56990/nrf52-dk-gpiote-interrupt-stops-working-after-approx-400ms-after-startup" /><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/240944?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 17:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13451935-9a86-41c4-9534-7f6b1b59799c</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve lost too much time trying to get this working.&amp;nbsp; Decided to create a simple app_timer to signal when to read the temperature probe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/237976?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 09:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97d4592f-33c3-4448-b697-bcb557130d79</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried to look at the code.&lt;/p&gt;
&lt;p&gt;I think it is weird that your screenshots in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/243221#permalink=533441"&gt;https://devzone.nordicsemi.com/support-private/support/243221#permalink=533441&lt;/a&gt;&amp;nbsp;show PORT event and not IN event since you have used&amp;nbsp;&amp;nbsp;.hi_accuracy = true&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;recommend to single step the code in&amp;nbsp;nrf_drv_gpiote_in_init() to check why it doesn&amp;#39;t run to&amp;nbsp;nrf_gpiote_event_configure() in&amp;nbsp;nrfx_gpiote_in_init(). Also set in_config.skip_gpio_setup = false; in&amp;nbsp;gpio_init().&lt;/p&gt;
&lt;p&gt;I notice you have configured many gpio&amp;#39;s in general with sense directly (not used the &lt;span&gt;nrf_drv_gpiote_in_init() to configure them&lt;/span&gt;&amp;nbsp;and at the same time set&amp;nbsp;NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS to only 1). I am not sure if this is a good idea, maybe consider using&amp;nbsp;&lt;span&gt;nrf_drv_gpiote_in_init() for all pins you want to wakeup with sense and with the proper number of&amp;nbsp;NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&amp;nbsp;to sense the wakeup on the pins.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think you should enable log output from nrfx_gpiote module, I think the&amp;nbsp;nrfx_gpiote_irq_handler() may be executing here when failing, the question what it may be doing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also check out the pin configuration NRF_GPIO-&amp;gt;PIN_CNF[D_TEMP_IRQ] when failing and working, to see if it has changed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&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: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/237872?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 17:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e27249-9de5-4977-b519-1b8fddabe11c</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I am at a standstill until this problem is resolved.&amp;nbsp; Have you had any success determining what the issue could be?&amp;nbsp; Does the Softdevice use or control any GPIOTE resources that could be changing the settings that I set up during initialization?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/236973?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 17:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8060a689-d554-40a3-b213-254e5da7f41e</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;If you do this, you will need to comment out the while statement at line 1266 that checks for the presents of Dallas part.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/236897?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 14:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a81fbf9e-7ef7-475d-99eb-305558f50df7</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;You can also set up another GPIO as an output and tie it to P0.25 to toggle the interrupt to simulate the Dallas onewire function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/236885?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 13:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a583e66b-53a8-463e-b9ef-8df3ee3e9f48</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Still no resolution on my end.&lt;/p&gt;
&lt;p&gt;I think you can trick the system if you change line 927 to have an internal pullup, you should be able to manually trigger the gpiote interrupt with a ground wire on P0.25 on P4 of the dev board. It is set for a LoToHi transition on this pin. Also comment-out the init function&amp;nbsp;void perfect_shower_init(void) at line 1255.&lt;/p&gt;
&lt;p&gt;In a nutshell, what I am trying to do is to run the Dallas ds18B20 temperature sensor continuously.&amp;nbsp; It takes 172ms per conversion so I can&amp;#39;t use a delay function so I set up it&amp;#39;s OneWire pin as an interrupt on pin P0.25.&amp;nbsp; This pin will be held low by the DS18B20 while the conversion takes place then an external pullup resistor on our board pulls it high.&amp;nbsp; (Hence the internal pullup requirement.)&amp;nbsp; When an interrupt is generated the handler goes to read the temperature probe data.&amp;nbsp; First it disables the interrupt so that when I read the probe the act of reading doesn&amp;#39;t generate more interrupts.&amp;nbsp; After the temperature data is read then another temperature conversion is immediately initiated and the interrupt is re-enabled and I go off to do other things for another 172ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem is that this process stops working after about 400ms.&amp;nbsp; The last activity I see on the d_temp_irq line falls in line with my perfect_shower_init() initialization routine. After this, I never get any interrupts from the GPIOTE system.&amp;nbsp; This seems to coincide with the ble_app_uart_c functions starting up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/236750?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 09:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3afd9e-fb9e-41f8-9ba4-f18884aa0544</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Any progress? I can compile and run the code, but it is stuck in&amp;nbsp;perfect_shower_init() since I don&amp;#39;t have an&amp;nbsp;DS18B20 present. Any way I can run the code without it present to recreate the issue?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/235267?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 16:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:388fa040-6df3-40a0-bb27-e477239bc7cc</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the entire structure.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF5_5F00_SDK_5F00_15.3.0_5F00_59ac345.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK_5F00_15.3.0_5F00_59ac345.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve made no more progress with this.&lt;/p&gt;
&lt;div style="left:215px;position:absolute;top:5.81818px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/234815?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 08:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28d025b4-fe47-4e26-bbc4-b0fdfcb80b4b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you gotten any further? It seems I need the entire structure yes (I need something self contained that compile out of the box).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/234281?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 22:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5784bc07-6223-4af0-aa98-554c98183ac2</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Kenneth,&lt;/p&gt;
&lt;p&gt;I ran your&amp;nbsp;PerfShwr-Valve_fix.emProject and it compiled just fine on my end.&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/234065?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 18:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d34d11c9-cc0a-4cbf-aaa3-c107809438ec</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;I&amp;quot;ve attached a screen shot of my build.&amp;nbsp; It is working on my end.&amp;nbsp; Should I try zipping up my entire Nordic directory structure so all files are included?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5661.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I did have a few dozen errors to clean up as I combined all the example programs that I need for my application.&amp;nbsp; BSP files and sdk_config should be part of the zipped files I sent you but I can send the entire subdirectory structure if you need.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, to be clear, I am running SDK 15.3, SES 4.30 (although it works on all versions down to 4.10. I haven&amp;#39;t tested older ones) and nRF52-DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233896?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 09:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba6c7dad-4a79-4a23-88bc-2c60cc2f0118</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-8ad042df2cd54a799d2a6c10e927164c/examples.zip"&gt;devzone.nordicsemi.com/.../examples.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I fixed the path by edit the .emproject files and search and replace (see example.zip). However the project still does not compile (seems to be some issue with bsp, possible other).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233854?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 02:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aec986e-49cf-4c85-be35-7582efd05847</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Kenneth,&lt;/p&gt;
&lt;p&gt;For some reason, the compiler isn&amp;#39;t finding files that seem to be in the relative path locations.&amp;nbsp; That is why I had to add absolute paths.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233607?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 17:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc73762-c3bf-4196-a71f-6b36684db558</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;I had the same problems when I merged the different example files.&amp;nbsp; This is why I had to add paths for the files that weren&amp;#39;t found. All I did was to locate the Nordic files that were needed and add their paths to the project.&amp;nbsp; I don&amp;#39;t think that I can &amp;quot;fix&amp;quot; that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233510?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 12:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64388827-d9b2-4100-b88e-363b66bb370d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I wasn&amp;#39;t able to compile the project, something seems missing. Which project should I open in \pca10040\s132? Can you double check that it compiles when placed in a fresh installation of SDKv15.3?&lt;/p&gt;
&lt;p&gt;Edit: I notice you are writing SES v4.3, I will try again.&lt;/p&gt;
&lt;p&gt;Edit2: I notice some of the include paths go to folders that seems&amp;nbsp;not to be relative (but absolute). Can you fix those?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233372?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 19:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2d39edf-1095-4cf7-b836-52e75dd615f6</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Kenneth,&lt;/p&gt;
&lt;p&gt;I give up.&amp;nbsp; The zipped file is attached. Unzip in your examples folder.&amp;nbsp;It&amp;nbsp;will run on nRF52-DK, SDK 15.3, SES 4.3. If you change line 927 to have an internal pullup, you should be able to trigger the gpiote interrupt with a ground wire on P0.25 on P4 of the dev board. It is set for a LoToHi transition on this pin. Also comment-out the init function&amp;nbsp;void perfect_shower_init(void) at line 1255.&lt;/p&gt;
&lt;p&gt;In a nutshell, what I am trying to do is to run the Dallas ds18B20 temperature sensor continuously.&amp;nbsp; It takes 172ms per conversion so I can&amp;#39;t use a delay function so I set up it&amp;#39;s OneWire pin as an interrupt on pin P0.25.&amp;nbsp; This pin will be held low by the DS18B20 while the conversion takes place then an external pullup resistor on our board pulls it high.&amp;nbsp; (Hence the internal pullup requirement.)&amp;nbsp; When an interrupt is generated the handler goes to read the temperature probe data.&amp;nbsp; First it disables the interrupt so that when I read the probe the act of reading doesn&amp;#39;t generate more interrupts.&amp;nbsp; After the temperature data is read then another temperature conversion is immediately initiated and the interrupt is re-enabled and I go off to do other things for another 172ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem is that this process stops working after about 400ms.&amp;nbsp; The last activity I see on the d_temp_irq line falls in line with my perfect_shower_init() initialization routine. After this, I never get any interrupts from the GPIOTE system.&amp;nbsp; This seems to coincide with the ble_app_uart_c functions starting up.&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/_2100_PerfShwrValve.zip"&gt;devzone.nordicsemi.com/.../_2100_PerfShwrValve.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233175?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 02:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc45a779-74c7-4bc6-9482-1fb6365aea8d</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Kenneth,&lt;/p&gt;
&lt;p&gt;When I setup a GPIOTE interrupt, how do I know what interrupt is being used?&amp;nbsp; It&amp;#39;s looking to me that my GPIOTE interrupt is being disabled by some other module such as:&amp;nbsp;ble_stack_init(),&amp;nbsp; gatt_init(),&amp;nbsp; nus_c_init()&amp;nbsp; or scan_init().&amp;nbsp; If I run the code continuously before enabling&amp;nbsp; these functions, the interrupt works fine.&amp;nbsp; This would account for the 400ms run time at startup.&lt;/p&gt;
&lt;p&gt;If this is the case, how do I specify an interrupt that isn&amp;#39;t used by the softdevice or other code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233168?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 00:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01aa095d-9a40-4924-b5df-f7eb71c7e397</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Since this code is setting an irq for an external Dallas temperature device, I&amp;#39;m not sure how I can give you a copy of the code that you can run directly.&amp;nbsp; However, I&amp;#39;ve setup 4 breakpoints and took 4 screen shots that show the GPIOTE registers after each.&amp;nbsp; You can see what is going on from these.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8867.Capture.PNG" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7382.Capture2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/04406.Capture3.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7776.Capture4.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;What to do next?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233167?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 23:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb88d2a-88f9-4d37-950b-446ca6a0912a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It is not that I don&amp;#39;t believe you, but I am not aware of any issue that may be similar to what you describe. My best suggestion is to take a look at the gpiote example one more time, comment out everything in your project that is not related for gpiote until it works, and then comment in code again until it fails. If you are not able to find the root cause, then I need a project I can unzip to the example folder in the nRF5 SDK and run on a standard nRF52-DK (without any third party hardware attached).&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any better suggestion, but please share any findings you may have.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233161?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 22:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcb3d7c0-aace-4902-8d57-0eebb41171f9</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve traced the GPIOTE port&amp;nbsp;enable setting to be performed by&amp;nbsp;&amp;nbsp; err_code = nrf_drv_gpiote_init(); in main.c.&lt;/p&gt;
&lt;p&gt;the call to:&amp;nbsp;&amp;nbsp; &amp;nbsp; nrf_gpiote_int_enable(GPIOTE_INTENSET_PORT_Msk); from&amp;nbsp;nrfx_err_t nrfx_gpiote_init(void) in nrfx_gptioe.c sets the GPIOTE port enable bit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My subsequent call to configure the pin PIN_IN:&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_in_config_t in_config = &lt;br /&gt; {&lt;br /&gt; .sense = NRF_GPIOTE_POLARITY_LOTOHI,&lt;br /&gt; .pull = NRF_GPIO_PIN_NOPULL ,&lt;br /&gt; .is_watcher = false,&lt;br /&gt; .hi_accuracy = true,&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;doesn&amp;#39;t change the port bit even though I am setting the hi_accuracy bit to true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233153?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 21:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca962e2-23ff-4338-b352-c3624c4ff1d1</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;If you look at the first code segment I pasted in my first post, you will see that I have set high accuracy to (true) so I don&amp;#39;t understand why I am getting the Port output enabled.&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(true); // true = high accuracy&lt;/p&gt;
&lt;p&gt;in_config.pull = NRF_GPIO_PIN_NOPULL;&lt;/p&gt;
&lt;p&gt;Also, your links refer to:&lt;/p&gt;
&lt;h2 class="title topictitle2"&gt;Tasks and events pin configuration&lt;/h2&gt;
&lt;div class="body conbody"&gt;
&lt;p class="shortdesc"&gt;Each GPIOTE channel is associated with one physical GPIO pin through the CONFIG.PSEL field.&lt;/p&gt;
&lt;p class="p"&gt;When Event mode is selected in CONFIG.MODE, the pin specified by CONFIG.PSEL will be configured as an input, overriding the DIR setting in GPIO. Similarly, when Task mode is selected in CONFIG.MODE, the pin specified by CONFIG.PSEL will be configured as an output overriding the DIR setting and OUT value in GPIO. When Disabled is selected in CONFIG.MODE, the pin specified by CONFIG.PSEL will use its configuration from the PIN[n].CNF registers in GPIO.&lt;/p&gt;
&lt;p class="p"&gt;I cannot find any modules that define CONFIG.MODE or CONFIG.PSEL.&amp;nbsp; How do I make sure that I get high accuracy and that I am set to Event?&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233147?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 20:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be9408df-8d3d-4aee-8cef-589ced02a530</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The picture show that you have enabled interrupt on PORT event only (high accuracy false will do that), there will be no IN[] events, only PORT event:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpiote.html#register.INTENSET"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpiote.html#register.INTENSET&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The PORT events will trigger for all pins that have configured sense:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html#register.PIN_CNF-0"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?#register.PIN_CNF-0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that sense is level triggered, not edge.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/233138?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 18:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7b87c1-691d-46ae-8285-506441a2a5f5</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the GPIOTE registers here:&lt;/p&gt;
&lt;p&gt;Register values while WORKING (first 400ms after startup)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/GPIOTE-Registers-_2D00_-working.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Register values while NOT working... (after the initial 400ms)&lt;/p&gt;
&lt;p&gt;&lt;img alt="GPIOTE Registers - NOT working" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/GPIOTE-Registers_2D00_NOT-working.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I believe that I&amp;#39;ve deactivated all button functionality.&amp;nbsp; From what I can tell, there are no other calls to &lt;span&gt;nrf_drv_gpiote_init().&amp;nbsp; No other calls in any other files are being linked in.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please advise.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK GPIOTE interrupt stops working after approx 400ms after startup.</title><link>https://devzone.nordicsemi.com/thread/231117?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 12:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f36927e2-b270-4ff8-9b91-37adda436ee7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you search through your code if you may be calling&amp;nbsp;nrf_drv_gpiote_init() somewhere else? Can you set a breakpoint shortly after init the GPIOTE module and read out the GPIOTE peripheral registers and compare when it doesn&amp;#39;t work? Also, check out if the GPIO pin configuration may have been reconfigured by other functionality in the code.&lt;/p&gt;
&lt;p&gt;To view peripheral registers in breakpoints you can check out this reply (replace RADIO with GPIOTE in your case):&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56344/dynamic-switching-of-prefixes-not-working-with-esb/229153#229153"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56344/dynamic-switching-of-prefixes-not-working-with-esb/229153#229153&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>