I have some extra steps that I need in the Post-build steps in MCUXpresso. But it only seems to execute one command regardless of the separator between commands. The example has a semicolon and another suggestion I found was to use "&". Neither of these works so that I can have multiple commands. I am on a Windows 11 machine.
I could cram everything into one batch script but that is not a clean solution since the step I need to add is distinct from the others.
Has anyone figured out a way to have multiple commands execute in post-build?
So, interestingly, this partially works but only under special conditions.
If I have a single command such as:
${workspace_loc:/${ProjName}}\xxx
The command succeeds with a path such as:
C:\Projects\aaa\bbb\xxx
But, if I add an ampersand with two commands:
${workspace_loc:/${ProjName}}\xxx & ${workspace_loc:/${ProjName}}\yyy
The slashes are removed and the command fails with a message such as the following without any slashes to separate the directories:
C:Projectsaaabbbxxx: not found
However, if I put absolute paths in place of ${workspace_loc:/${ProjName}}, it will properly format and execute both commands.
Hi,
Thank you so much for your interest in our products and for using our community.
Yes! The person who figured it out created the following post:
Executing Multiple Commands as Post-Build Steps in Eclipse
Hope it helps you.
Have a nice day!