<?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(s) not running unless connected to RTT logger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113728/gpio-interrupt-s-not-running-unless-connected-to-rtt-logger</link><description>Hello DevZone! 
 I am using a nrf5340 with the nrf Connect SDK v2.6.0. I have been running into an issue that has come up a few times on separate occasions. Basically, for no apparent reason, my GPIO handler sometimes decides to either not want to simply</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Aug 2024 10:19:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113728/gpio-interrupt-s-not-running-unless-connected-to-rtt-logger" /><item><title>RE: GPIO interrupt(s) not running unless connected to RTT logger</title><link>https://devzone.nordicsemi.com/thread/497603?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 10:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0013f0a-e512-4ce9-9722-265b5880b50f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using RTT logging should not affec the scheduler in any direct way. But it can change timing etc, as you found in the second issue. This change in timing may not only be related to logging and RTT itself, but also to the debugger being attached and keeping clocks and regulators running. This may also be why you don&amp;#39;t see the issue if you use a while loop with a short delay as that wakes the device up regularily (depending on the delay).&lt;/p&gt;
&lt;p&gt;Is the issue also worked around by enabling constant latency mode (&lt;code&gt;NRF_POWER-&amp;gt;TASKS_CONSTLAT = 1;&lt;/code&gt;) but not having the loop in your main thread? I would not thing so, but it would be intersting to see.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO interrupt(s) not running unless connected to RTT logger</title><link>https://devzone.nordicsemi.com/thread/497372?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 16:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e989c7-7c86-4e7f-bab7-ece61d02f8c1</guid><dc:creator>luckyyorange</dc:creator><description>&lt;p&gt;Occasion 2 has been resolved. Occasion 2 was relying on a delay from the RTT logger being open and had been indeed correctly running the GPIO ISR and work submission the whole time. Apologies for any misleading as I had very little ability to debug because of limited use of the logger in this scenario.&lt;/p&gt;
&lt;p&gt;However, still looking into occasion 1. After learning the resolution for occasion 2, I may be left to believe that occasion 1 may be due to needing a delay as well rather than a ISR or scheduling not running&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>