Skip to main content
Associate II
July 29, 2025
Solved

Files generated by STM32CubeIde and STM32CubeProg

  • July 29, 2025
  • 2 replies
  • 380 views

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 :(

 

This topic has been closed for replies.
Best answer by Maryem

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.

2 replies

Maryem
MaryemBest answer
ST Employee
July 29, 2025

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.

In order 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.
phil2niceAuthor
Associate II
July 29, 2025


I got it, and tried your answer, it works great !
Thanks