<?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>nvic registered interrupt doesn&amp;#39;t work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13465/nvic-registered-interrupt-doesn-t-work</link><description>Hi all, 
 my Setup : 
 
 nrf51822 QFAC Build Code A1,Waveshare Core51822 Board 
 keil microvision 
 nrf device family Pack 8.6 
 without Softdevice erased with openocd nrf51 mass_erase I hope this is right? 
 stlink/v2 debugger 
 keil target option</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Apr 2016 19:00:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13465/nvic-registered-interrupt-doesn-t-work" /><item><title>RE: nvic registered interrupt doesn't work</title><link>https://devzone.nordicsemi.com/thread/51385?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 19:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c509a564-a64b-47a6-b71d-4d68f3152850</guid><dc:creator>homsch</dc:creator><description>&lt;p&gt;Thanks RK this is the solution. Now the ISR works. And thanks to Petter Myhre because your answer is a bugfix for a second program fault.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nvic registered interrupt doesn't work</title><link>https://devzone.nordicsemi.com/thread/51384?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 00:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c353b4d-3250-4e49-b0f3-d4839589b222</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Ah - the screenshots show something you omitted to mention, you&amp;#39;re using C++. The exclamation point should have given you a hint that code&amp;#39;s not even linked into your app.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;extern &amp;quot;C&amp;quot;&lt;/code&gt; for IRQ handlers, or use C.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nvic registered interrupt doesn't work</title><link>https://devzone.nordicsemi.com/thread/51383?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 19:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f592b4bf-4cbe-4a78-83ef-1a853eac0a98</guid><dc:creator>homsch</dc:creator><description>&lt;p&gt;I tried NRF_RTC1-&amp;gt;EVENTS_COMPARE[0] = 0; inside the RTC1_IRQHandler. It doesn&amp;#39;t help. In Debug Mode I never reach the Breakpoint (it is not red, it is an exclamation mark ) inside the RTC1_IRQHandler. I use the original arm_startup_nrf51.s where the handler is declared.
First time the event is set I come into the if condition from main() and NRF_RTC1-&amp;gt;EVENTS_COMPARE[0] = 0; works but the code hangs at nrf_gpio_pin_toggle(STATUS_LED_PIN); The core Registers looks Ok see screenhot:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Registers.JPG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nvic registered interrupt doesn't work</title><link>https://devzone.nordicsemi.com/thread/51382?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 10:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7fb1350-d87c-43a8-83dd-a12bbb93312f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Since you are not clearing the event I believe the interrupt handler is called immidiately after you leave it. Try adding &lt;code&gt;NRF_RTC1-&amp;gt;EVENTS_COMPARE[0] = 0;&lt;/code&gt; inside it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>