<?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 Post-processing your linked application in LPCXpresso IDE FAQs</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Post-processing-your-linked-application/m-p/474054#M116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is sometimes useful to be able to automatically post-process your linked application, typically to run one or more of the GNU 'binutils'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, any application project that you create using the Project wizard will have least one such "post-build step" - typically to display the size of your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="145161_145161.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121303iB3EF509D9843C73F/image-size/large?v=v2&amp;amp;px=999" role="button" title="145161_145161.png" alt="145161_145161.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27581i2927DECE5E023DE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Additional commands may also be listed (for example to create a binary and to run a checksum command), but be commented out by use of a # character and hence not executed. Any commands following a comment #command will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding addition steps is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example we are going to carry out three post-link steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;displaying the size of the application&lt;/LI&gt;&lt;LI&gt;generate an interleaved C / assembler listing&lt;/LI&gt;&lt;LI&gt;create a hex version of the application image.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the Project properties. There are a number of ways of doing this. For example, make sure the Project is highlighted in the Project Explorer view then open the menu "Project -&amp;gt; Properties".&lt;/LI&gt;&lt;LI&gt;In the left-hand list of the Properties window, open "C/C++ Build" and select "Settings".&lt;/LI&gt;&lt;LI&gt;Select the "Build steps" tab&lt;/LI&gt;&lt;LI&gt;In the "Post-build steps - Command" field, click 'Edit...'&lt;UL&gt;&lt;LI&gt;paste in the lines below and click 'OK'&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;arm-none-eabi-size ${BuildArtifactFileName};&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;arm-none-eabi-objdump -S ${BuildArtifactFileName}&amp;gt;&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;${BuildArtifactFileBaseName}.lss;&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;arm-none-eabi-objcopy -O ihex ${BuildArtifactFileName}&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;${BuildArtifactFileBaseName}.hex;&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; that the above is actually a single line with each post-build step separated from the next by a ";" (semi-colon) character.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click apply&lt;/LI&gt;&lt;LI&gt;Repeat for your other Build Configurations (Debug/Release)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time you do a build, this set of post-link steps will now run, displaying the application size in the console, creating you an interleaved C/assembler listing file called &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;TT&gt;&amp;lt;projectname&amp;gt;.lss&lt;/TT&gt;&lt;/EM&gt;&lt;/SPAN&gt; and a hex file called &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;TT&gt;&amp;lt;projectname&amp;gt;.hex&lt;/TT&gt;&lt;/EM&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time you do a build, this set of post-link steps will now run, displaying the application size in the console, creating you an interleaved C/assembler listing file called &lt;TT&gt;&amp;lt;projectname&amp;gt;.lss&lt;/TT&gt; and a hex file called &lt;TT&gt;&amp;lt;projectname&amp;gt;.hex&lt;/TT&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Temporarily removing post-build steps&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to temporarily remove a step from your post-build process, rather than deleting it completely - move that entry to the end of the line and pre-fix it with a "#" (hash) character. This acts as a comment, causing the rest of the post-build-step line to be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Related FAQs&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&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 _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389005" data-objecttype="1" href="https://community.nxp.com/thread/389005"&gt;Generating srec, binary and ihex files&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389046" data-objecttype="1" href="https://community.nxp.com/thread/389046"&gt;Image Checksums&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 22:52:34 GMT</pubDate>
    <dc:creator>lpcware-support</dc:creator>
    <dc:date>2016-03-31T22:52:34Z</dc:date>
    <item>
      <title>Post-processing your linked application</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Post-processing-your-linked-application/m-p/474054#M116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is sometimes useful to be able to automatically post-process your linked application, typically to run one or more of the GNU 'binutils'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, any application project that you create using the Project wizard will have least one such "post-build step" - typically to display the size of your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="145161_145161.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121303iB3EF509D9843C73F/image-size/large?v=v2&amp;amp;px=999" role="button" title="145161_145161.png" alt="145161_145161.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27581i2927DECE5E023DE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Additional commands may also be listed (for example to create a binary and to run a checksum command), but be commented out by use of a # character and hence not executed. Any commands following a comment #command will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding addition steps is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example we are going to carry out three post-link steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;displaying the size of the application&lt;/LI&gt;&lt;LI&gt;generate an interleaved C / assembler listing&lt;/LI&gt;&lt;LI&gt;create a hex version of the application image.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the Project properties. There are a number of ways of doing this. For example, make sure the Project is highlighted in the Project Explorer view then open the menu "Project -&amp;gt; Properties".&lt;/LI&gt;&lt;LI&gt;In the left-hand list of the Properties window, open "C/C++ Build" and select "Settings".&lt;/LI&gt;&lt;LI&gt;Select the "Build steps" tab&lt;/LI&gt;&lt;LI&gt;In the "Post-build steps - Command" field, click 'Edit...'&lt;UL&gt;&lt;LI&gt;paste in the lines below and click 'OK'&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;arm-none-eabi-size ${BuildArtifactFileName};&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;arm-none-eabi-objdump -S ${BuildArtifactFileName}&amp;gt;&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;${BuildArtifactFileBaseName}.lss;&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;arm-none-eabi-objcopy -O ihex ${BuildArtifactFileName}&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;TT&gt;${BuildArtifactFileBaseName}.hex;&lt;/TT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; that the above is actually a single line with each post-build step separated from the next by a ";" (semi-colon) character.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click apply&lt;/LI&gt;&lt;LI&gt;Repeat for your other Build Configurations (Debug/Release)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time you do a build, this set of post-link steps will now run, displaying the application size in the console, creating you an interleaved C/assembler listing file called &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;TT&gt;&amp;lt;projectname&amp;gt;.lss&lt;/TT&gt;&lt;/EM&gt;&lt;/SPAN&gt; and a hex file called &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;TT&gt;&amp;lt;projectname&amp;gt;.hex&lt;/TT&gt;&lt;/EM&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time you do a build, this set of post-link steps will now run, displaying the application size in the console, creating you an interleaved C/assembler listing file called &lt;TT&gt;&amp;lt;projectname&amp;gt;.lss&lt;/TT&gt; and a hex file called &lt;TT&gt;&amp;lt;projectname&amp;gt;.hex&lt;/TT&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Temporarily removing post-build steps&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to temporarily remove a step from your post-build process, rather than deleting it completely - move that entry to the end of the line and pre-fix it with a "#" (hash) character. This acts as a comment, causing the rest of the post-build-step line to be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Related FAQs&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&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 _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389005" data-objecttype="1" href="https://community.nxp.com/thread/389005"&gt;Generating srec, binary and ihex files&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389046" data-objecttype="1" href="https://community.nxp.com/thread/389046"&gt;Image Checksums&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 22:52:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Post-processing-your-linked-application/m-p/474054#M116</guid>
      <dc:creator>lpcware-support</dc:creator>
      <dc:date>2016-03-31T22:52:34Z</dc:date>
    </item>
  </channel>
</rss>

