it seems that CDT is not very happy with both post-build steps and secondary targets, the order of operations in the generated makefiles is not as expected.
Post-build steps are started too early.
I want to calculate a CRC over the srec file (with srec_cat).
Post-build starts right after the elf file is created.
But at this time the srec file has not yet been created by the Cross ARM GNU Create Flash Image process.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
unfortunately the build order for the secondary targets and the post-build steps is controlled by CDT, not by the plug-in, and fixing it requires patching CDT, which is a long and complicated process. :-(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One workaround is to create a separate builder (Project Properties > Builders) that runs after the CDT builder. You can have the builder run tools directly, a script, etc. Then set it to only build during manual builds. It will be triggered after all CDT steps are finished, including lst file generation, print size, and objcopy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Post-build steps are started too early.
I want to calculate a CRC over the srec file (with srec_cat).
Post-build starts right after the elf file is created.
But at this time the srec file has not yet been created by the Cross ARM GNU Create Flash Image process.
unfortunately the build order for the secondary targets and the post-build steps is controlled by CDT, not by the plug-in, and fixing it requires patching CDT, which is a long and complicated process. :-(
One workaround is to create a separate builder (Project Properties > Builders) that runs after the CDT builder. You can have the builder run tools directly, a script, etc. Then set it to only build during manual builds. It will be triggered after all CDT steps are finished, including lst file generation, print size, and objcopy.