<?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>nRF52840 GPIO EVENT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34875/nrf52840-gpio-event</link><description>hi All! 
 I use WAKE UP event from G-SENSOR on some GPIO to wake up the MCU on motion detected. 
 But sometimes ( ~1% ) the event does not occur for unknown reason until RESET. 
 By oscilloscope, signal exist, but even doesn&amp;#39;t sent. 
 the init code: </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 May 2018 10:10:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34875/nrf52840-gpio-event" /><item><title>RE: nRF52840 GPIO EVENT</title><link>https://devzone.nordicsemi.com/thread/133997?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 10:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc040fa4-7eea-4f70-b50a-8418eaa3619b</guid><dc:creator>Aylik</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I changed&amp;nbsp;.sense = NRF_GPIOTE_POLARITY_TOGGLE , in this case EVENTS does &amp;#39;nt lost all works ok.&lt;/p&gt;
&lt;p&gt;dont know why (will check then in driver sources) , but possible solution.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 GPIO EVENT</title><link>https://devzone.nordicsemi.com/thread/133993?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 09:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11860ad2-bafa-4a5c-8030-cd29cf1bccac</guid><dc:creator>Aylik</dc:creator><description>&lt;p&gt;Hi Edvin.&lt;/p&gt;
&lt;p&gt;I find the reason but not solution.&lt;/p&gt;
&lt;p&gt;I use two PIN&amp;#39;s for separate GPIOE events.&lt;/p&gt;
&lt;p&gt;So, the problem is , if one of the PIN is in Active state , another PIN is blind to the event, so the event will lost.&lt;/p&gt;
&lt;p&gt;HOW to solve this issue ? I mean how to provide catch events separatelly even one of the PIN is in hold (active) state ?&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 GPIO EVENT</title><link>https://devzone.nordicsemi.com/thread/133965?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 08:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fed8c86-431a-4e16-b81a-8cc6a8e16b66</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Just to clarify:&lt;/p&gt;
&lt;p&gt;It happens 1% of times until RESET, so after about 100 times, the chip won&amp;#39;t wake up anymore, or does it happen on 1% of the chips? (I assume the first)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that you don&amp;#39;t use any pull configuration. I also see that you trigger from LoToHi. Can you try to add: .pull = NRF_GPIO_PIN_PULLDOWN, and see if that helps?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Other than might adding a pull, I can&amp;#39;t see anything wrong with your setup. Are you sure that it is only the interrupt not working, or could it be that the entire application hangs? Can you please try to add &amp;quot;DEBUG&amp;quot;&amp;nbsp; to your preprocessor defines, and see if any of the APP_ERROR_CHECK(err_code); receives an err_code != NRF_SUCCESS?&amp;nbsp;&lt;br /&gt;Depending on the SDK version that you use, it depends a bit where to set the breakpoint. Just try to add:&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(1);&lt;/p&gt;
&lt;p&gt;somewhere in your main() function, and see where it stops.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>