2026-03-17 3:37 AM
hello ST Community,
Is it possible to generate a binary file that is a *.elf file from a project developed by STM32CubeIDE?
Using the correct settings for generating *.bin files.
The *.bin file would be used to create a bootloader via UART for one of the STM32 microcontrollers.
Thanks for your valuable support.
Solved! Go to Solution.
2026-03-17 3:50 AM
Hello
Let me thank you for posting.
Right-click on your project, Go to Properties, C/C++ Build → Settings, Tool Settings → MCU Post build outputs.
And enable Convert to binary file (-O Binary), then build the project.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-17 3:50 AM
Project -> Properties
2026-03-17 3:50 AM
Hello
Let me thank you for posting.
Right-click on your project, Go to Properties, C/C++ Build → Settings, Tool Settings → MCU Post build outputs.
And enable Convert to binary file (-O Binary), then build the project.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-30 8:43 AM
Follow-on thread: how to send the binary file to the microcontroller.
2026-03-30 9:07 AM
@Domy_ST wrote:How to generate a *.bin file instead of a *.elf file
To be pedantic, the solution is not instead of the .elf - the .bin file is created in addition to the .elf.