<?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>LPC MicrocontrollersのトピックRe: Default interrupt handler for LPC1313</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684458#M27555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The interrupt handler routine must be defined in&amp;nbsp;PIOINT0_IRQHandler() for an interrupt on the GPIO0 port. However, in the case it is not defined, then is it expected that the program goes to the default&amp;nbsp;IntDefaultHandler()?&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 04:16:28 GMT</pubDate>
    <dc:creator>prachipanse</dc:creator>
    <dc:date>2017-05-22T04:16:28Z</dc:date>
    <item>
      <title>Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684456#M27553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to run an interrupt handling routing on receiving an interrupt on a GPIO pin for LPC1313. I am using the LPCOpen library. I have only defined the IntDefaultHandler() in my code. However, I see that on an interrupt event, this routing is not being called.&lt;/P&gt;&lt;P&gt;As per my understanding if any other specific interrupt handler is not defined, then the controller should execute the default interrupt handler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please tell me if my understanding is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 04:22:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684456#M27553</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-18T04:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684457#M27554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prachi panse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to enter the interrupt handler, you must add the code with the ISR function name the same as the .s file defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Take an example, if you want to use PIO INT0, you need to use:&lt;/P&gt;&lt;P&gt;void PIOINT0_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//add&amp;nbsp; your own code.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20633i680048E0F6246A9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't write the according interrupt function, the code will have error, it may enter hardfault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the GPIO interrupt code, you also can refer to this code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc1311134243-peripherals-using-keils-mdk-arm" title="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc1311134243-peripherals-using-keils-mdk-arm"&gt;Sample Code Bundle for LPC1311_13_42_43 Peripherals using Keil's MDK-ARM | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find the gpio driver in folder:code.bundle.lpc13xx.keil__3\LPC13xx_SampleSoftware.107\Common\src&lt;/P&gt;&lt;P&gt;gpio.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684457#M27554</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-19T07:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684458#M27555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The interrupt handler routine must be defined in&amp;nbsp;PIOINT0_IRQHandler() for an interrupt on the GPIO0 port. However, in the case it is not defined, then is it expected that the program goes to the default&amp;nbsp;IntDefaultHandler()?&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 04:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684458#M27555</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-22T04:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684459#M27556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prachi panse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Just as what I have told you, if the according interrupt handler is missing, the code will enter HardFault_Handler:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20108i5AB0CCB4A074DA47/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20051iF1CB1AD984866224/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 04:41:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684459#M27556</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-22T04:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684460#M27557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that answers my doubt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in what event is the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;IntDefaultHandler() called?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 05:07:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684460#M27557</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-22T05:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684461#M27558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prachi panse,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't know what the indeed code you are using, I am using the lpcopen_2_05_keil_iar_nxp_lpcxpresso_1343 code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I didn't find the function &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;IntDefaultHandler&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can check your project .s file, in the vectors, do you have the &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;IntDefaultHandler&lt;/SPAN&gt; vector?&lt;/P&gt;&lt;P&gt;Actually, you don't need to care about the default handler, if you want the code enter GPIO interrupt, please add the according handler, this is the most important thing to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 05:23:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684461#M27558</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-22T05:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684462#M27559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using LPCXpresso and not keil. 'lpcopen_2_05_lpcxpresso_nxp_lpcxpresso_1343'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 05:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684462#M27559</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-22T05:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684463#M27560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prachi panse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;From the lpcxpresso project, we can get that:&lt;/P&gt;&lt;P&gt;//*****************************************************************************&lt;BR /&gt;//&lt;BR /&gt;// Processor ends up here if an unexpected interrupt occurs or a specific&lt;BR /&gt;// handler is not present in the application code.&lt;BR /&gt;//&lt;BR /&gt;//*****************************************************************************&lt;BR /&gt;__attribute__ ((section(".after_vectors")))&lt;BR /&gt;void IntDefaultHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;So, if the peripherals handler is not defined, when the accoriding ISR is triggered, the code will enter IntDefaultHandler.&lt;/P&gt;&lt;P&gt;Take periph_grouped_int project as an example.&lt;/P&gt;&lt;P&gt;If I comment GINT0_IRQHandler, and when P1_19 is connect 0, the ISR will be triggered, then the code will enter IntDefaultHandler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="82.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20258iA3C86B0BEFAB0165/image-size/large?v=v2&amp;amp;px=999" role="button" title="82.jpg" alt="82.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your first post understanding is correct!&lt;/P&gt;&lt;P&gt;Any further question, just let us know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 05:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684463#M27560</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-22T05:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684464#M27561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello prachi panse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, in the cr_start_lpc13xx.c, you can find the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20381i3842CCFED4283AAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ALIAS(IntDefaultHandler);&lt;/P&gt;&lt;P&gt;If you don't define it, it will go to&amp;nbsp; IntDefaultHandler;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 06:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684464#M27561</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-22T06:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684465#M27562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you very much for the confirmation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 06:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684465#M27562</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-22T06:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt handler for LPC1313</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684466#M27563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prachi panse,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are welcome!&lt;/P&gt;&lt;P&gt;&amp;nbsp; If your question is solved, please help to mark the correct answer to close this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you and have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 06:32:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Default-interrupt-handler-for-LPC1313/m-p/684466#M27563</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-22T06:32:07Z</dc:date>
    </item>
  </channel>
</rss>

