Sunday, February 25th 2018, 10:52pm UTC+1

You are not logged in.

  • Login
  • Register



Date of registration: Feb 29th 2016

Posts: 87


Sunday, February 11th 2018, 11:06am

How to chain multiple Post-Link commands

I would like to have more than one post link command, in SES. I can of course replace the one default to invoke my script say.
But I wonder if you can do this in SES without custom script.

So in project settings, User Build Steps, Post-Link Command I would like to replace with 2 in 1 as:
"$(ToolChainDir)/arm-none-eabi-objcopy" -Oihex "$(RelTargetPath)" "$(PostLinkOutputFilePath)".hex ; "$(ToolChainDir)/arm-none-eabi-objcopy" -v -Obinary "$(RelTargetPath)" "$(PostLinkOutputFilePath)".bin

But the chaining doesn't work, everything after first objcopy gets passed to it as arguments.

Additionally, for above I modified Post-Link Output file, to remove extension so that I can add it to the commands above. That, screws up the "Output Files" folder, which appears after you have built project and it contains the outputs. Now, removing extension from Post-Link Output file screws it up - only single no-extension output appears, which you cannot access - because that folder doesn't represent what's on the actual filesystem, it seems contains the targets defined through the project config.

Would be nice to have option to add multiple Post-link commands, and multiple output files.


Super Moderator

Date of registration: Jan 2nd 2017

Posts: 716


Wednesday, February 14th 2018, 2:47pm


Thank you for your feature request.
Chaining User Build Steps commands is currently not supported nor is such a feature planned to be added.
We can put it on the wish list but no promises that this will be added.

Best regards,