<?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>nrf9160 gpio interrupt callback handler crashes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80880/nrf9160-gpio-interrupt-callback-handler-crashes</link><description>Hi all, 
 
 I am trying to use an interrupt callback handler but I can&amp;#39;t get it to work. I got the interrupt initialized but whenever the callback is triggered, the system crashes. 
 
 This is my code: 
 
 
 Instead of resetting the counter, it just reboots</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Oct 2021 07:27:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80880/nrf9160-gpio-interrupt-callback-handler-crashes" /><item><title>RE: nrf9160 gpio interrupt callback handler crashes</title><link>https://devzone.nordicsemi.com/thread/335196?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 07:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:472cc00e-aa02-4ab7-b0bb-8e703b2c9244</guid><dc:creator>Annessare</dc:creator><description>&lt;p&gt;I already found out what the problem was:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You have to define&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;struct gpio_callback gpio_cb;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;globally, not inside a function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>