Skip to main content
Joan Duran
Associate II
June 27, 2019
Question

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

  • June 27, 2019
  • 2 replies
  • 1070 views

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

This topic has been closed for replies.

2 replies

Markus GIRDLAND
ST Employee
June 28, 2019

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
June 28, 2019

Thank you Markus!

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