<?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: cr_startup_lpc13xx.c AND INTERRUPT PROBLEM</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574891#M19126</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 Thu Jul 23 00:18:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you created a project for LPC1347, using the LPC13xx (12-bit ADC) wizards,&amp;nbsp; then the startup file will be called cr_startup_lpc13uxx.c - with the "13u" in the filename being critical.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you create a new project and the startup file is called cr_startup_lpc13xx.c - then you have used the wrong wizard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggest that if you are still having problems, export and post your project.&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=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fhow-importexport-projects" rel="nofollow" target="_blank"&gt;https://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 20:15:22 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:15:22Z</dc:date>
    <item>
      <title>cr_startup_lpc13xx.c AND INTERRUPT PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574887#M19122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dimaios on Wed Jul 22 09:09:22 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm using version LPCXpresso v7.8.0 [Build 426] [2015-05-28] of the IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a new project importing the library &lt;/SPAN&gt;&lt;I&gt;lpcopen_2_05_lpcxpresso_nxp_lpcxpresso_1347.zip&lt;/I&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a testing board LPCXpresso LPC1347.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've built and debugged the sample &lt;/SPAN&gt;&lt;I&gt;periph_uart_rb&lt;/I&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;[u]everything was ok[/u]&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a new project to test the UART starting from the file &lt;/SPAN&gt;&lt;I&gt;uart_rb.c&lt;/I&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IDE &lt;/SPAN&gt;&lt;STRONG&gt;[u]auto generates[/u]&lt;/STRONG&gt;&lt;SPAN&gt; the files &lt;/SPAN&gt;&lt;I&gt;sysinit.c&lt;/I&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;I&gt;cr_startup_lpc13xx.c&lt;/I&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've simply copied the content of &lt;/SPAN&gt;&lt;I&gt;uart_rb.c&lt;/I&gt;&lt;SPAN&gt; into my main file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RESULT : the application doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem starts when the UART interrput is enabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#06f]NVIC_EnableIRQ(UART0_IRQn); [/color]&amp;lt;&amp;lt;&amp;lt;===== Put a breakpoint here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.... pausing the code execution you can see that the program is running into this code section of the &lt;/SPAN&gt;&lt;I&gt;cr_startup_lpc13xx.c&lt;/I&gt;&lt;SPAN&gt; file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#0c3]//*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Processor ends up here if an unexpected interrupt occurs or a handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// is not present in the application code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//*****************************************************************************[/color]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#33f]__attribute__((section(".after_vectors")))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void IntDefaultHandler(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Go into an infinite loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (1) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}[/color]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;OBSERVATION&lt;/STRONG&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;I&gt;cr_startup_lpc13xx.c&lt;/I&gt;&lt;SPAN&gt; file generated by the new IDE is different from the old one you can find into the&amp;nbsp; &lt;/SPAN&gt;&lt;I&gt;uart_rb.c&lt;/I&gt;&lt;SPAN&gt; folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Overwriting the new file ( auto generated by the IDE ) with the old one everything works well!&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand why .... it seems that the interrupt isn't correctly linked to the callback ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked all compiler directives and option .... I never found differences.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574887#M19122</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: cr_startup_lpc13xx.c AND INTERRUPT PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574888#M19123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Jul 22 09:24:49 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;try defining __USE_LPCOPEN&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: BTW: When using the New Project... wizard, for LPC1347 make sure you choose "LPC13xx (12-bit ADC)" and not "LPC13xx" as they are quite different.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574888#M19123</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: cr_startup_lpc13xx.c AND INTERRUPT PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574889#M19124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dimaios on Wed Jul 22 23:51:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__USE_LPCOPEN was included in the symbols list and the project was create choosing the "LPC13xx (12-bit ADC)" MCU but the application doesn't work anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574889#M19124</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: cr_startup_lpc13xx.c AND INTERRUPT PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574890#M19125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Jul 23 00:14:52 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be a good idea to post this project...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574890#M19125</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: cr_startup_lpc13xx.c AND INTERRUPT PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574891#M19126</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 Thu Jul 23 00:18:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you created a project for LPC1347, using the LPC13xx (12-bit ADC) wizards,&amp;nbsp; then the startup file will be called cr_startup_lpc13uxx.c - with the "13u" in the filename being critical.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you create a new project and the startup file is called cr_startup_lpc13xx.c - then you have used the wrong wizard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggest that if you are still having problems, export and post your project.&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=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fhow-importexport-projects" rel="nofollow" target="_blank"&gt;https://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 20:15:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574891#M19126</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: cr_startup_lpc13xx.c AND INTERRUPT PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574892#M19127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dimaios on Thu Jul 23 08:32:08 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#0c6]If you created a project for LPC1347, using the LPC13xx (12-bit ADC) wizards, then the startup file will be called cr_startup_lpc13uxx.c - with the "13u" in the filename being critical.[/color]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perfect. I've found the bug. During wizard for some reason the file was created without the "u" letter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following your suggestion I've solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/cr-startup-lpc13xx-c-AND-INTERRUPT-PROBLEM/m-p/574892#M19127</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:22Z</dc:date>
    </item>
  </channel>
</rss>

