cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a post build step after generate the binary file?

Joan Duran
Associate II

Using TrueStudio we have a post build step which modifies the generated binary file, but using STM32CubeIDE doesn't work because the post build step is executed before the binary file is generated. How I can perform a step after generate the binary file?

Here is a sample output:

Finished building target: MyApp.elf

make --no-print-directory post-build

echo "This is my Post-build step"

This is my Post-build step

arm-none-eabi-size  MyApp.elf

arm-none-eabi-objdump -h -S MyApp.elf > "MyApp.list"

  text     data      bss      dec      hex   filename

  6168       12     1868     8048     1f70   MyApp.elf

arm-none-eabi-objcopy -O binary MyApp.elf "MyApp.bin"

Finished building: default.size.stdout

Finished building: MyApp.bin

Finished building: MyApp.list

2 REPLIES 2
Markus GIRDLAND
ST Employee

This is fixed in our internal builds and will be part of a release pretty soon.

I don't know of a workaround in the meantime.

Joan Duran
Associate II

Thank you Markus!

It's fine for me if this issue it's solved in the next release.