<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPCXpresso IDEのトピックLPC2368 VIC INTURRUPT NOT HAPPENING</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC2368-VIC-INTURRUPT-NOT-HAPPENING/m-p/564630#M17682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmariner on Fri May 02 07:00:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Further to my original problem with the IDE not showing all the VIC registers, I still seem to be having problems getting an interrupt routine to be called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void timer2_handler()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//code for handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VICIntEnClr=(1&amp;lt;&amp;lt;26); // disable timer 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VICVectAddr26=(unsigned long)timer2_handler; // set address for IRQ26 - TIMER2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//timer 2 setup code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VICIntSelect&amp;amp;=~(1&amp;lt;&amp;lt;26); // use IRQ and vector interrupt controller&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VICIntEnable=(1&amp;lt;&amp;lt;26); // timer 2 interrupt enabled&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though the interrupt register is showing that timer2 interrupt flag is set, a breakpoint in timer2_handler() is never hit in debug mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I copy VICVectAddr26 into a temp variable that I watch and can see that the correct handler address is in the VIC interrupt address register (when compared to the dissasembly addresses in debug).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is obviously something I am missing but I cannot see it a the moment. Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:40:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:40:47Z</dc:date>
    <item>
      <title>LPC2368 VIC INTURRUPT NOT HAPPENING</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC2368-VIC-INTURRUPT-NOT-HAPPENING/m-p/564630#M17682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmariner on Fri May 02 07:00:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Further to my original problem with the IDE not showing all the VIC registers, I still seem to be having problems getting an interrupt routine to be called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void timer2_handler()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//code for handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VICIntEnClr=(1&amp;lt;&amp;lt;26); // disable timer 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VICVectAddr26=(unsigned long)timer2_handler; // set address for IRQ26 - TIMER2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//timer 2 setup code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VICIntSelect&amp;amp;=~(1&amp;lt;&amp;lt;26); // use IRQ and vector interrupt controller&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VICIntEnable=(1&amp;lt;&amp;lt;26); // timer 2 interrupt enabled&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though the interrupt register is showing that timer2 interrupt flag is set, a breakpoint in timer2_handler() is never hit in debug mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I copy VICVectAddr26 into a temp variable that I watch and can see that the correct handler address is in the VIC interrupt address register (when compared to the dissasembly addresses in debug).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is obviously something I am missing but I cannot see it a the moment. Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC2368-VIC-INTURRUPT-NOT-HAPPENING/m-p/564630#M17682</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2368 VIC INTURRUPT NOT HAPPENING</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC2368-VIC-INTURRUPT-NOT-HAPPENING/m-p/564631#M17683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Fri May 02 07:41:57 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So it might be useful if you could confirm if you have tried the things we posted previously in one of your previous threads…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fdebug-problem-lpc2468-vic%23comment-1136987" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/debug-problem-lpc2468-vic#comment-1136987&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In particular...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Try powering you board up in ISP mode before attaching the debugger&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Compare your setup and exception handler to code to the example that we posted&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would also suggest getting your timer interrupt to do something so that you can see whether it is taking place when the debugger is not attached (e.g. blink a LED).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are still having problems, then please confirm details of which version of the tools you are using, which debug probe (LPC-Link1 ?), which target board and preferably some example code that shows up the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fhow-importexport-projects" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/how-importexport-projects&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC2368-VIC-INTURRUPT-NOT-HAPPENING/m-p/564631#M17683</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2368 VIC INTURRUPT NOT HAPPENING</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC2368-VIC-INTURRUPT-NOT-HAPPENING/m-p/564632#M17684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmariner on Mon May 05 06:07:34 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked through example code and cannot see anything obvious that I am not doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I put LED blink in interrupt routine and found that interrupt would hit once and blink LED but then would never hit again even though timer2 is still running. I can see timer2 int is enabled in the VIC still by reading the vicintenable register which is 0x4000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also vicIRQstatus is 0x4000000 indicating timer2 should interrupt again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC2368-VIC-INTURRUPT-NOT-HAPPENING/m-p/564632#M17684</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:48Z</dc:date>
    </item>
  </channel>
</rss>

