<?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>topic Error: an unexpected interrupt occurs or a specific handler is not present in the application code in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Error-an-unexpected-interrupt-occurs-or-a-specific-handler-is/m-p/639758#M25292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: 'Calibri Light'; font-size: 20.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;I created a new C++ project based on LPCOpen for the&amp;nbsp;LPCXpresso1549 demo board, and I copied the code from LPCOpen periph_adc project to try it in my C++ project. It compiled just fine, but at run time it will block here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;//*****************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;// Processor ends up here if an unexpected interrupt occurs or a specific&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;// handler is not present in the application code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;//*****************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;__attribute__ ((section(".after_vectors")))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;void IntDefaultHandler(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;{ while(1) {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Also the message: 'No source available for "0x30000b8" ' appears.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;I attach here my project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;I would really appreciate any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Doini&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338026"&gt;Workspace_Receiver_LPC1549.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2017 05:04:00 GMT</pubDate>
    <dc:creator>doini</dc:creator>
    <dc:date>2017-04-25T05:04:00Z</dc:date>
    <item>
      <title>Error: an unexpected interrupt occurs or a specific handler is not present in the application code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Error-an-unexpected-interrupt-occurs-or-a-specific-handler-is/m-p/639758#M25292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: 'Calibri Light'; font-size: 20.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;I created a new C++ project based on LPCOpen for the&amp;nbsp;LPCXpresso1549 demo board, and I copied the code from LPCOpen periph_adc project to try it in my C++ project. It compiled just fine, but at run time it will block here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;//*****************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;// Processor ends up here if an unexpected interrupt occurs or a specific&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;// handler is not present in the application code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;//*****************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;__attribute__ ((section(".after_vectors")))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;void IntDefaultHandler(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;{ while(1) {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Also the message: 'No source available for "0x30000b8" ' appears.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;I attach here my project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;I would really appreciate any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Doini&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338026"&gt;Workspace_Receiver_LPC1549.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 05:04:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Error-an-unexpected-interrupt-occurs-or-a-specific-handler-is/m-p/639758#M25292</guid>
      <dc:creator>doini</dc:creator>
      <dc:date>2017-04-25T05:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error: an unexpected interrupt occurs or a specific handler is not present in the application code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Error-an-unexpected-interrupt-occurs-or-a-specific-handler-is/m-p/639759#M25293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to watch with C++ is the name mangling of the interrupt handler names. &amp;nbsp;For more details see :&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389106"&gt;Startup code and interrupt handlers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to the message&amp;nbsp;'No source available for "0x30000b8" - this does occasionally happen. But you can just ignore this and close the tab containing it. The debugger has simply stopped the MCU during the connection sequence whilst it was executing code in the ROM bootloader (causing the IDE to try to display the code at that location - which of course there is no source for in your application).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 10:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Error-an-unexpected-interrupt-occurs-or-a-specific-handler-is/m-p/639759#M25293</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-04-25T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error: an unexpected interrupt occurs or a specific handler is not present in the application code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Error-an-unexpected-interrupt-occurs-or-a-specific-handler-is/m-p/639760#M25294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Thank you, I wrote extern "C" {...} around the interrupt functions and it is working now, the error disappeared.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="margin: 0px; color: black; font-size: medium; font-family: 'Calibri',sans-serif;"&gt;Doini&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 19:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Error-an-unexpected-interrupt-occurs-or-a-specific-handler-is/m-p/639760#M25294</guid>
      <dc:creator>doini</dc:creator>
      <dc:date>2017-04-25T19:00:22Z</dc:date>
    </item>
  </channel>
</rss>

