How to use a post build step after generate the binary file?
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