<?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 FAQsのトピックGenerating srec, binary and ihex files</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Generating-srec-binary-and-ihex-files/m-p/469645#M46</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generating srec (Motorola S format), binary, ihex (Intel Hex) files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When building a project, the LPCXpresso IDE tools create an ARM executable format (AXF) file - which is actually standard ELF/DWARF file. This file can be programmed directly down to your target using the LPCXpresso debug functionality, but it may also be converted into a variety of formats suitable for use in other external tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The objcopy (arm-none-eabi-objcopy) utility is used for this. Objcopy can convert into the following formats:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;srec&lt;/LI&gt;&lt;LI&gt;binary&lt;/LI&gt;&lt;LI&gt;ihex&lt;/LI&gt;&lt;LI&gt;tekhex&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, to convert example.axf into binary format, use the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial,sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;TT&gt;arm-none-eabi-objcopy -O binary example.axf example.bin&lt;/TT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you Ctrl-click on the projectname on the right hand side of the bottom bar of the IDE, this will launch a command prompt in the project directory with appropriate tool paths set up. All you need to do before running the objcopy command is change into the directory of the required Build configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also select the .axf file in the Project Explorer, right-click and select "Binary Utilities-&amp;gt;Create binary". You can change the options used to create a binary file in this way on the "Windows-&amp;gt;Preferences -&amp;gt;LPCXpresso-&amp;gt;Utilites" preference page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Automatically converting the file during a build&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objcopy may be used to automatically convert an axf file during a build. To do this, create an appropriate Post-build step. See related FAQs below for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Binary files and checksums&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating a binary file, you also need to ensure that you apply a checksum to it. Please see the FAQ "&lt;A href="https://community.nxp.com/thread/389046"&gt;LPC Image Checksums&lt;/A&gt; " for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Related FAQs&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389116" data-objecttype="1" href="https://community.nxp.com/thread/389116"&gt;Post-processing your linked application&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="388997" data-objecttype="1" href="https://community.nxp.com/thread/388997"&gt;Disassembling objects and executables&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/389046"&gt;LPC Image Checksums&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 18:33:27 GMT</pubDate>
    <dc:creator>lpcware-support</dc:creator>
    <dc:date>2016-03-31T18:33:27Z</dc:date>
    <item>
      <title>Generating srec, binary and ihex files</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Generating-srec-binary-and-ihex-files/m-p/469645#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generating srec (Motorola S format), binary, ihex (Intel Hex) files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When building a project, the LPCXpresso IDE tools create an ARM executable format (AXF) file - which is actually standard ELF/DWARF file. This file can be programmed directly down to your target using the LPCXpresso debug functionality, but it may also be converted into a variety of formats suitable for use in other external tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The objcopy (arm-none-eabi-objcopy) utility is used for this. Objcopy can convert into the following formats:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;srec&lt;/LI&gt;&lt;LI&gt;binary&lt;/LI&gt;&lt;LI&gt;ihex&lt;/LI&gt;&lt;LI&gt;tekhex&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, to convert example.axf into binary format, use the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial,sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;TT&gt;arm-none-eabi-objcopy -O binary example.axf example.bin&lt;/TT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you Ctrl-click on the projectname on the right hand side of the bottom bar of the IDE, this will launch a command prompt in the project directory with appropriate tool paths set up. All you need to do before running the objcopy command is change into the directory of the required Build configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also select the .axf file in the Project Explorer, right-click and select "Binary Utilities-&amp;gt;Create binary". You can change the options used to create a binary file in this way on the "Windows-&amp;gt;Preferences -&amp;gt;LPCXpresso-&amp;gt;Utilites" preference page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Automatically converting the file during a build&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objcopy may be used to automatically convert an axf file during a build. To do this, create an appropriate Post-build step. See related FAQs below for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Binary files and checksums&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating a binary file, you also need to ensure that you apply a checksum to it. Please see the FAQ "&lt;A href="https://community.nxp.com/thread/389046"&gt;LPC Image Checksums&lt;/A&gt; " for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Related FAQs&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389116" data-objecttype="1" href="https://community.nxp.com/thread/389116"&gt;Post-processing your linked application&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="388997" data-objecttype="1" href="https://community.nxp.com/thread/388997"&gt;Disassembling objects and executables&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/389046"&gt;LPC Image Checksums&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 18:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Generating-srec-binary-and-ihex-files/m-p/469645#M46</guid>
      <dc:creator>lpcware-support</dc:creator>
      <dc:date>2016-03-31T18:33:27Z</dc:date>
    </item>
  </channel>
</rss>

