cancel
Showing results for 
Search instead for 
Did you mean: 

Files generated by STM32CubeIde and STM32CubeProg

phil2nice
Associate

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Maryem
ST Employee

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.

View solution in original post

2 REPLIES 2
Maryem
ST Employee

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.


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