2025-07-29 5:17 AM
Hello all,
I am a newbee, and so far I finally did successfully in creating my first prog with STM32CubeIde.
I am able to produce .bin, .elf, .hex files for my project with CubeIde
I am able to read and produce a bin file of the program in flash in my board with the CubeProg
When I want to flash back to the board using DFU mode, I noticed that bin file doesn t have any segment starting address, elf file instead, have a starting address 0x800000
If I load a bin file, do I have to specify the correct programmer address I mean 0x800000 in cubeprog, because it doesn't itself :(
Solved! Go to Solution.
2025-07-29 5:47 AM
Hello @phil2nice,
The .elf file has the start address embedded, but .bin files are just raw data without address info. When flashing a .bin file, you need to manually set the programming address. This can be done in STM32CubeProgrammer’s Erasing & Programming panel or the Memory & File Editing tab.
Maryem.
2025-07-29 5:47 AM
Hello @phil2nice,
The .elf file has the start address embedded, but .bin files are just raw data without address info. When flashing a .bin file, you need to manually set the programming address. This can be done in STM32CubeProgrammer’s Erasing & Programming panel or the Memory & File Editing tab.
Maryem.
2025-07-29 6:01 AM
I got it, and tried your answer, it works great !
Thanks