2021-12-28 06:00 PM
Hello,
I want to know final binary size after build like IAR.
Currently final output os CubeIDE is Elf file, so I do not know what size it is.
(When I use IAR, It showed final binary size on terminal and could also generate binary file.)
Is there anyone know about how to check final binary size on CubeIDE?
Best Regards,
Tiel
Solved! Go to Solution.
2021-12-28 06:45 PM
When you successfully build a project, the size is output to the console. This one is 10180 (= 10160 + 20) bytes as the BSS segment doesn't need to be stored in flash.
arm-none-eabi-objcopy -O binary test_f303rct_uart_inversion.elf "test_f303rct_uart_inversion.bin"
text data bss dec hex filename
10160 20 1572 11752 2de8 test_f303rct_uart_inversion.elf
It's also shown in the Build Analyzer:
If you want to generate a BIN file, select that option in the project properties:
2021-12-28 06:45 PM
When you successfully build a project, the size is output to the console. This one is 10180 (= 10160 + 20) bytes as the BSS segment doesn't need to be stored in flash.
arm-none-eabi-objcopy -O binary test_f303rct_uart_inversion.elf "test_f303rct_uart_inversion.bin"
text data bss dec hex filename
10160 20 1572 11752 2de8 test_f303rct_uart_inversion.elf
It's also shown in the Build Analyzer:
If you want to generate a BIN file, select that option in the project properties:
2021-12-29 06:21 AM
Dear TDK,
Thanks for your kind explanation and pictures.
Best Regards,
Tiel