<?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のトピックRe: HEX file creation</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548989#M10784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Fri Jan 29 09:21:53 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;1. Use Flash Magic (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.flashmagic.com" rel="nofollow" target="_blank"&gt;http://www.flashmagic.com&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;2. Use the command line flash programmer (&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%2Fcommand-line-flash-programming" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/command-line-flash-programming&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:57:33 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:57:33Z</dc:date>
    <item>
      <title>HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548988#M10783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by eddiemallon on Fri Jan 29 09:08:12 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the past I have used the KEIL IDE to compile code and create a hex file which I have downloaded to a number of 2129 boards via the RS232 port without any problems. I now want to use the LPCExpresso IDE to develop and compile new code. I have added the line 'arm-non-eabi-objcopy -0 ihex ${BuildArtifactFileName}${BuildArtifactFileBaseName}.hex' to the post build steps and changed the artefact extension to HEX. The BUILD creates a HEX file but in trying to download it to my 2129 target board using the Philips Flash Utility, an message appears stating that it is invalid or unsupported HEX type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548988#M10783</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548989#M10784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Fri Jan 29 09:21:53 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;1. Use Flash Magic (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.flashmagic.com" rel="nofollow" target="_blank"&gt;http://www.flashmagic.com&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;2. Use the command line flash programmer (&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%2Fcommand-line-flash-programming" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/command-line-flash-programming&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548989#M10784</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548990#M10785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by eddiemallon on Fri Jan 29 10:18:28 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi and thanks for quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;have tried Flashmagic. Same error message, invalid hex file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With both utilities stating invalid hex file, this would suggest the hex file generation within LPCExpresso IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code has been compiled on Keil and works OK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548990#M10785</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548991#M10786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Fri Jan 29 11:38:18 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-non-eabi-objcopy -0 ihex ${BuildArtifactFileName}${BuildArtifactFileBaseName}.hex&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this really the line you used? Is this -0 or -O? Spaces between parameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How big is output file? Have you opened it with a text editor? Is the content correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548991#M10786</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548992#M10787</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 Sat Jan 30 03:39:16 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition to the comments above from &lt;/SPAN&gt;&lt;I&gt;mysepp&lt;/I&gt;&lt;SPAN&gt;, I suggest also checking the build log contents and showing us the actual link and objcopy commands that got run, and any messages displayed...&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%2Fbuild-console" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/build-console&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>Thu, 16 Jun 2016 01:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548992#M10787</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548993#M10788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by eddiemallon on Sun Jan 31 08:25:39 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the build console contains the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;12:03:08 **** Incremental Build of configuration Release for project test ****&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make -r all &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Building target: test.hex&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invoking: MCU Linker&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="test.map" -Xlinker --gc-sections -mcpu=arm7tdmi -T "test_Release.ld" -o "test.hex"&amp;nbsp; ./src/cr_startup_lpc21.o ./src/crp.o ./src/main.o&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Finished building target: test.hex&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make --no-print-directory post-build&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Performing post-build steps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-size "test.hex" ; #arm-none-eabi-objcopy -v -O binary "test.hex" "test.bin" ; #checksum -p LPC2129 -d "test.bin" ; arm-non-eabi-objcopy -O hex "test.hex" "test.hex"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp; hexfilename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 440&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 440&amp;nbsp;&amp;nbsp;&amp;nbsp; 1b8test.hex&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;12:03:09 Build Finished (took 690ms)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the hex file is identical to the axf file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The text in the post build is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-size "${BuildArtifactFileName}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-non-eabi-objcopy -O hex "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.hex"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548993#M10788</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548994#M10789</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 Sun Jan 31 12:36:26 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: eddiemallon&lt;/STRONG&gt;&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;the build console contains the following:&lt;BR /&gt;&lt;BR /&gt;12:03:08 **** Incremental Build of configuration Release for project test ****&lt;BR /&gt;make -r all &lt;BR /&gt;Building target: test.hex&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="test.map" -Xlinker --gc-sections -mcpu=arm7tdmi -T "test_Release.ld" -o "test.hex"&amp;nbsp; ./src/cr_startup_lpc21.o ./src/crp.o ./src/main.o&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Finished building target: test.hex&lt;BR /&gt; &lt;BR /&gt;make --no-print-directory post-build&lt;BR /&gt;Performing post-build steps&lt;BR /&gt;arm-none-eabi-size "test.hex" ; #arm-none-eabi-objcopy -v -O binary "test.hex" "test.bin" ; #checksum -p LPC2129 -d "test.bin" ; arm-non-eabi-objcopy -O hex "test.hex" "test.hex"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp; hexfilename&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 440&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 440&amp;nbsp;&amp;nbsp;&amp;nbsp; 1b8test.hex&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;12:03:09 Build Finished (took 690ms)&lt;BR /&gt;&lt;BR /&gt;the hex file is identical to the axf file.&lt;BR /&gt;&lt;BR /&gt;The text in the post build is:&lt;BR /&gt;&lt;BR /&gt;arm-none-eabi-size "${BuildArtifactFileName}"&lt;BR /&gt;#arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"&lt;BR /&gt;#checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"&lt;BR /&gt;arm-non-eabi-objcopy -O hex "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.hex"&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :quest:&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;&lt;LI-EMOJI id="lia_face-with-open-mouth" title=":face_with_open_mouth:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Default post build is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;arm-none-eabi-size "${BuildArtifactFileName}"
[color=#f00]#[/color]arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"
[color=#f00]#[/color]checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just change it to [color=#f00]Intel[/color] Hex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;arm-none-eabi-size "${BuildArtifactFileName}"
arm-none-eabi-objcopy -v -O [color=#f00]ihex[/color] "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}[color=#f00].hex[/color]"
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548994#M10789</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548995#M10790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by eddiemallon on Mon Feb 01 12:37:29 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for info, The IDE is now creating a hex file which is downloadable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, code not executing so will have to look further into this, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least I am a stage further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548995#M10790</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: HEX file creation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548996#M10791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Mon Feb 01 13:44:06 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you need to use also a post build command to set the vectors checksum?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is this done automatically by Keil (which I do not use)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or by the download and flash tool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/HEX-file-creation/m-p/548996#M10791</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:57:38Z</dc:date>
    </item>
  </channel>
</rss>

