<?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のトピックLPC4337 Boot</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553829#M14647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Mon Dec 09 17:59:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create a project for the M4 core in a LPC4337, for internal flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create a project using the wizard, in LPCxpresso 6.1.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using CMSISv2p10_LPC43xx etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I want to do is make ANY io line go low.&amp;nbsp; Nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[0] = 0xFFFFFFFF;// Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[0] = 0xFFFFFFFF;// LOW&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried simply turning on the external crystal oscillator - Nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CGU-&amp;gt;XTAL_OSC_CTRL = 0b00000001;// EXT 12MHz Xtal&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code does not appear to excecute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I download the .hex with Flash Magic 7.37.3076, into Bank 0, and with Activate Flash Bank ticked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The .hex must be valid, as the MCU will not reprogram unless ISP pin is low during reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Sam&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:39:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:39:50Z</dc:date>
    <item>
      <title>LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553829#M14647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Mon Dec 09 17:59:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create a project for the M4 core in a LPC4337, for internal flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create a project using the wizard, in LPCxpresso 6.1.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using CMSISv2p10_LPC43xx etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I want to do is make ANY io line go low.&amp;nbsp; Nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[0] = 0xFFFFFFFF;// Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[0] = 0xFFFFFFFF;// LOW&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried simply turning on the external crystal oscillator - Nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CGU-&amp;gt;XTAL_OSC_CTRL = 0b00000001;// EXT 12MHz Xtal&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code does not appear to excecute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I download the .hex with Flash Magic 7.37.3076, into Bank 0, and with Activate Flash Bank ticked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The .hex must be valid, as the MCU will not reprogram unless ISP pin is low during reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Sam&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553829#M14647</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553830#M14648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Dec 10 01:17:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest you test one of the existing examples in our LPCOpen package:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.lpcware.com/content/nxpfile/lpcopen-platform"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-platform&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at one of these running projects you might get an impression what's going wrong in your project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are many possible reasons why the chip is not doing anything useful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- wrong bootmode setting on the board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- wrong/missing initialization code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- no flash signature for the internal flash&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- board not powered&amp;nbsp; (no, this was a joke ;-) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553830#M14648</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553831#M14649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Tue Dec 10 15:02:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following example projects:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC4337-Xplorer_Blinky_DualM0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC4337-Xplorer_LedToggle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CPU appears to do nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The boot mode is all Boot select pins low.&amp;nbsp; According to the data sheet, the boot select pins only affect the booting when ISP pin is low, and the device boots from internal flash when ISP pin high.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The MCU programs and reads fine (When reset while ISP pin is low).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not have JTAG on this board.&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.razorbackecu.com%2Ftemp%2FSchematic%2520Prints1.pdf" rel="nofollow" target="_blank"&gt;http://www.razorbackecu.com/temp/Schematic%20Prints1.pdf&lt;/A&gt;&lt;/SPAN&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.razorbackecu.com%2Ftemp%2Fnxp1.jpg" rel="nofollow" target="_blank"&gt;http://www.razorbackecu.com/temp/nxp1.jpg&lt;/A&gt;&lt;/SPAN&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.razorbackecu.com%2Ftemp%2Fnxp2.jpg" rel="nofollow" target="_blank"&gt;http://www.razorbackecu.com/temp/nxp2.jpg&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankyou&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553831#M14649</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553832#M14650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Tue Dec 10 15:13:50 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when I open the example ZIP files that you suggested (on the LPCOpen site), at least half of the directories are corrupted and cannot be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553832#M14650</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553833#M14651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Tue Dec 10 19:45:10 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi hetech,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your schematic ISP Pin(P2.7) is connected somewhere. Can you also check voltage on this. Device may be going into&amp;nbsp; ISP mode&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553833#M14651</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553834#M14652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Tue Dec 10 20:08:54 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Device is not going into ISP mode by accident, because once it is programmed, it cannot be programmed again without me holding ISP line low during reset.&amp;nbsp; Reset will not allow re-programming without me holding that line low.&amp;nbsp; There is a pullup resistor on that line (2k2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISP pin just goes to external pushbutton to GND.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553834#M14652</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553835#M14653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Tue Dec 10 20:15:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Files attached&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I measued the JTAG lines (even tho they are not used)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TDO lo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TMS hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRST hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TCK lo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also built a 2nd board.&amp;nbsp; Does nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried GNDing DBGEN.&amp;nbsp; Does nothing. (normally it reads HIGH)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553835#M14653</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553836#M14654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Tue Dec 10 23:08:36 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I wired in JTAG.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I program the MCU using JTAG, then toggle RESET, my software runs!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I program the MCU using Flash Magic (using .hex file), then toggle RESET, my software DOES NOT RUN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash magic appears to program the MCU successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553836#M14654</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 Boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553837#M14655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hetech on Wed Dec 11 21:57:16 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed post build steps to this:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-size "${BuildArtifactFileName}"; arm-none-eabi-objcopy -O ihex "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.hex" ; arm-none-eabi-objcopy -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" ; checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previous was... (Which worked fine for LPC17xx)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-size "${BuildArtifactFileName}"; arm-none-eabi-objcopy -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" ; checksum -v "${BuildArtifactFileBaseName}.bin"; arm-none-eabi-objcopy -I binary "${BuildArtifactFileBaseName}.bin" -O ihex "${BuildArtifactFileBaseName}.hex";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the main difference is the way the checksum is created.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-Boot/m-p/553837#M14655</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:56Z</dc:date>
    </item>
  </channel>
</rss>

