<?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 Generate binary artifact with LPCXpresso in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Generate-binary-artifact-with-LPCXpresso/m-p/836910#M33357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I am using LPCXpresso to develop software for LPC11C12.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The generated build-artifact has the .axf extension. I would like to generate a binary file from that so I am using the following command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;arm-none-eabi-objcopy --reverse-bytes=4 -v -O binary "myArtifact.axf" "myArtifact.bin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting this error:&lt;/P&gt;&lt;P&gt;arm-none-eabi-objcopy.exe: cannot reverse bytes: length of section .debug_info must be evenly divisible by 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A .bin file is generated but when I write it to the flash memory it does not work (it works when I write the axf file to flash). If I inspect the axf and bin files using a hex-editor the bytes order is reversed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a solution, maybe a way to add a padding to debug_info to make it divisible by 4? I would prefer not to reverse the bytes order manually as I want to use the .bin file in production.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2018 14:58:42 GMT</pubDate>
    <dc:creator>alexrebega</dc:creator>
    <dc:date>2018-11-14T14:58:42Z</dc:date>
    <item>
      <title>Generate binary artifact with LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Generate-binary-artifact-with-LPCXpresso/m-p/836910#M33357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I am using LPCXpresso to develop software for LPC11C12.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The generated build-artifact has the .axf extension. I would like to generate a binary file from that so I am using the following command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;arm-none-eabi-objcopy --reverse-bytes=4 -v -O binary "myArtifact.axf" "myArtifact.bin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting this error:&lt;/P&gt;&lt;P&gt;arm-none-eabi-objcopy.exe: cannot reverse bytes: length of section .debug_info must be evenly divisible by 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A .bin file is generated but when I write it to the flash memory it does not work (it works when I write the axf file to flash). If I inspect the axf and bin files using a hex-editor the bytes order is reversed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a solution, maybe a way to add a padding to debug_info to make it divisible by 4? I would prefer not to reverse the bytes order manually as I want to use the .bin file in production.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Generate-binary-artifact-with-LPCXpresso/m-p/836910#M33357</guid>
      <dc:creator>alexrebega</dc:creator>
      <dc:date>2018-11-14T14:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generate binary artifact with LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Generate-binary-artifact-with-LPCXpresso/m-p/836911#M33358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using "reverse-bytes"? It is not needed when converting an AXF file into a binary. In fact (as you have discovered) it will reverse the byte order, thus breaking your binary!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See chapter 16.11 "Creating bin hex or S-Record files" in the MCUXpresso User Guide for more&amp;nbsp;information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 17:30:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Generate-binary-artifact-with-LPCXpresso/m-p/836911#M33358</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-11-14T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generate binary artifact with LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Generate-binary-artifact-with-LPCXpresso/m-p/836912#M33359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below threads.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389005"&gt; files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333991"&gt; IDE: Creating Binary Files (S-Record, Intel Hex, Binary)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 15:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Generate-binary-artifact-with-LPCXpresso/m-p/836912#M33359</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2018-11-15T15:45:28Z</dc:date>
    </item>
  </channel>
</rss>

