Friday, May 25th 2018, 10:48am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

1

Sunday, February 11th 2018, 11:06am

[SOLVED] 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.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,059

2

Wednesday, February 14th 2018, 2:47pm

Hello,

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,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

3

Monday, March 5th 2018, 9:48am

Hello,

That's a pity.

Actually, it would be good if Segger adds not chaining, but executing arbitrary (and number of) Post/Pre build commands.

Would be best of course if user can dynamically add (in the options list, by adding another raw in the configuration) such commands (or targets).
If not dynamic, at least provide like 3 customizeable steps like that.

E..g in that options list:
-------------------| ------------------------------------------
UsrPostBuild1 (or UsrPostBuild1Tgt) UsrPostBuild1Cmd

So you can name the build name (or target) and specify build command. The output should also be automagically reflected in SES's output folder . ( Which currently seems reflects only hard-coded few outputs. )

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,059

4

Thursday, March 8th 2018, 1:53pm

Hello,

We will discuss this internally and see how this might be added for future versions.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/