<?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 Re: How execute external application as pre-build steps ? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580876#M24721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Dore on Fri Nov 08 07:17:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a .bat file which executes the arm-none-eabi-objcopy, arm-none-eabi-size and srec_cat commands to generate the hex file and bin file from .axf file and generates combined hex file from my boot code and application code. I have these commands in my .bat file. I have tried using cmd /s "..\..\..\Tools\hexfile.cmd" it doesnt work. I have tried multiple other methods too, but nothing helped me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:41:33 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:41:33Z</dc:date>
    <item>
      <title>How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580864#M24709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by plebi on Wed Apr 13 02:43:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to execute external application before compilation&amp;nbsp; - automatically. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Always before compilation should be executed application (especialy python script). Now im using run-&amp;gt;extrenal tool but it is not automatic action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to realize it ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580864#M24709</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580865#M24710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Apr 13 07:44:57 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you look at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Project Properties
&amp;nbsp; +-C/C++ Build
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +-Settings
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +-Build Steps
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +-Pre-build steps
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580865#M24710</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580866#M24711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by plebi on Wed Apr 13 23:53:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This method dont works. This is command for make as I see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example - run ver.bat command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"make -j1 pre-build main-build &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Performing ppre-build steps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ver.bat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]make: ver.bat: Command not found[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: [pre-build] Error 127 (ignored)"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580866#M24711</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580867#M24712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Apr 14 00:33:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It does work, but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. You haven't put ver.bat into a location that can be found. Make is run in the Debug (or Release) directory, so if ver.bat is in the root of your project, you will need to use ../ver.bat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I don't think you can execute a batch file directly from make. You will need to run it through the command shell. i.e. cmd/c ../ver.bat (you might need to experiment with the exact syntax - I haven't tried it)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580867#M24712</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580868#M24713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by plebi on Thu Apr 14 01:49:18 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thanx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using cmd it works&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580868#M24713</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580869#M24714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by adrien.thurin on Thu Oct 31 03:30:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also trying to execute a script during past-build steps, but I can't get it to execute the script, even using the cmd /c command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use, as a test script : &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;@echo off
echo "Hello World"
echo "Hello World" &amp;gt; "..\LPC.txt"&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as a post-build command :&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;cmd /C "../script.bat"&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The output in the LPC command is : &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;cmd /C "../script.bat"
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.&amp;nbsp; All rights reserved.

(adrient)C:\MyWorkspace\MyProject\Debug&amp;gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The expected "Hello World" output doesn't appear in the LCP console, and the LPC.txt file is not created in the project folder. This shows that the script isn't executed at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580869#M24714</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580870#M24715</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 Thu Oct 31 07:20:23 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that if you look in the console, you will see and error, something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
'..' is not recognized as an internal or external command, operable program or batch file.
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is because you have used the wrong sort of slash. As you are passing a parameter to cmd.exe, you need to pass the Windows backslash. i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
cmd /c "..\script.cmd"
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: Have you considered using shell commands instead of windows bath commands? shell is much more powerful, and is also portable across all platforms (Windows, Linux and Mac).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580870#M24715</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580871#M24716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by adrien.thurin on Thu Oct 31 08:01:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried both types of slash, but both of them behave exactly the same. I didn't get any error message. Either the system understands both types, or it doesn't read the "..\script.bat" part at all, I guess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried using the shell provided with LPC for the script, but I spent one full day trying and not getting anywhere. It seems like many standard linux shell commands are not available with LPC shell. Since I am quite beginner in scripting, I tried to do things that are standard and well documented. I have tried many things with linux shell commands, but most of them are not available the the LPC shell. After one day not getting anywhere, I gave up and went back to windows batch. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The most surprising to me is that I had to do a similar script for another project using a TI part. TI's Code Composer Studio is also based on eclipse, but it runs windows-type script perfectly smoothly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if it matters, but I am running LPCXpresso version 4.3.0. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580871#M24716</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580872#M24717</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 Thu Oct 31 08:55:39 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you trying to add it to the end of the existing post-build steps? If so, please remember that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. the ";" character separates individual command and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. the "#" character is a comment. Anything after the first # is ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your description, my guess is that your command is being commented out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that does not explain your problem, please post EXACTLY the post-build step you are trying to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580872#M24717</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580873#M24718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by adrien.thurin on Thu Oct 31 09:11:43 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The exact post-build command is : &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;cmd /C "..\script.bat" "${eclipse_home} "; arm-none-eabi-size ${BuildArtifactFileName}; # arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin ; 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;The output on the LPC console window is : &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Performing post-build steps
cmd /C "..\script.bat" "C:\nxp\LPCXpresso_4.3.0_1023\lpcxpresso\ "; arm-none-eabi-size PWM.axf; # arm-none-eabi-objcopy -O binary PWM.axf PWM.bin ; checksum -p LPC1112FD_102 -d PWM.bin;
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.&amp;nbsp; All rights reserved.

(adrient)C:\Users\adrient\Desktop\New folder (5)\S module\.debug&amp;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
&amp;nbsp;&amp;nbsp; 3104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72&amp;nbsp;&amp;nbsp; 3180&amp;nbsp;&amp;nbsp;&amp;nbsp; c6cPWM.axf
 
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The test script is as described previously.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Part of the command seems to be interpreted, since a cmd prompt appears in LCP console window, but not the script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580873#M24718</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580874#M24719</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 Thu Oct 31 11:53:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem is in the way you are invoking cmd.exe - and I cannot provide you with assistance for running Windows commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can tell you that if you run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cmd /s "..\script.bat"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then the script is run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more information on running cmd.exe:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- run cmd /?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- take a look at these links&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%2Fss64.com%2Fnt%2Fcmd.html" rel="nofollow" target="_blank"&gt;http://ss64.com/nt/cmd.html&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%2Fstackoverflow.com%2Fquestions%2F12891383%2Fcorrect-quoting-for-cmd-exe-for-multiple-arguments" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/12891383/correct-quoting-for-cmd-exe-for-multiple-arguments&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[EDIT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This post-build step works for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cmd /c "..\script.cmd ${eclipse_home} "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580874#M24719</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580875#M24720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by adrien.thurin on Fri Nov 01 01:35:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried cmd /c "..\script.cmd ${eclipse_home} ", and it works ! Thank you very much !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though the test script doesn't actually use the parameter, the whole script seems to not be executed at all with the cmd /C "..\script.bat" "${eclipse_home} " syntax. Very weird, but it works now and it's all that matters. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580875#M24720</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580876#M24721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Dore on Fri Nov 08 07:17:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a .bat file which executes the arm-none-eabi-objcopy, arm-none-eabi-size and srec_cat commands to generate the hex file and bin file from .axf file and generates combined hex file from my boot code and application code. I have these commands in my .bat file. I have tried using cmd /s "..\..\..\Tools\hexfile.cmd" it doesnt work. I have tried multiple other methods too, but nothing helped me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580876#M24721</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580877#M24722</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 Fri Nov 08 07:25:41 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the error that is reported. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My guess is that you do not have the correct number of ".."'s. The script is executed from the directory in which the build is happening - typically Debug or Release. So get get to the main project directory, you need to use "..\script" etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580877#M24722</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580878#M24723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Dore on Fri Nov 08 08:19:57 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting the following at the end of the build:&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;cmd /s "..\..\..\Tools\hexfile.cmd"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft Windows [Version 6.1.7601]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copyright (c) 2009 Microsoft Corporation.&amp;nbsp; All rights reserved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I have the .cmd/bat file in the root folder (outside the folders of my application code) file I have the "arm-none-eabi-objcopy.exe", arm-none-eabi-size.exe and srec_cat.exe also in the same folder where the .bat file is present. I have my hex file also in the same folder (just copied from the debug folder of the compiled code)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And my .bat file contains srec_cat "AppCode.hex" -intel -o "AppCode1.hex" -intel command line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I just want to invoke my .bat or .cmd file and generate the AppCode1.hex file as a result of the post compilation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to see AppCode1.hex whereas if I double click on my batch file I am getting it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580878#M24723</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How execute external application as pre-build steps ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580879#M24724</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 Fri Nov 08 08:24:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggest you read and learn how to invoke cmd.exe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hint: you don't want the /s option...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:41:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-execute-external-application-as-pre-build-steps/m-p/580879#M24724</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:41:35Z</dc:date>
    </item>
  </channel>
</rss>

