Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => mcHF Projekt Deutsch / English (here you can discuss everything related to mcHF) => Message started by: arcticsilver on 27. April 2021, 17:13:56

Title: Convert .bin firmware to dfu file
Post by: arcticsilver on 27. April 2021, 17:13:56

Hi all,

I'm trying to convert a .bin firmware file for an OVI40 F7 (Sparrow) to a .dfu file but I don't know the 0x address to do the conversion. Any help would be appreciated!

Title: Re:Convert .bin firmware to dfu file
Post by: satoryboy on 28. April 2021, 05:13:08

Hi

Fw upload from address 0x8010000, loader from 0x08000000. 73!

Title: Re:Convert .bin firmware to dfu file
Post by: WD8BXS on 30. April 2021, 12:47:01

I wonder if when using ST-Link to load MCU STM32F437VIT6TR, should the starting address be 0x08010000 ?

Instead of 0x08000000 ??
Thanks,
Chuck

Title: Re:Convert .bin firmware to dfu file
Post by: DF8OE on 30. April 2021, 14:18:00

Bootloader starts at 0x08000000
Firmware starts at 0x08010000

Bootloader only uses (the first) half of the space. The second half is "virtual EEPROM" inside STM32.

vy 73
Andreas

Title: Re:Convert .bin firmware to dfu file
Post by: WD8BXS on 30. April 2021, 16:40:41

Can't you load both at the same time, with one .bin file??
A program image?

Chuck

Title: Re:Convert .bin firmware to dfu file
Post by: DF8OE on 30. April 2021, 16:57:28

Nop. You would overwrite "virtual EEPROM" which contains all your personal settings (or a backup of them).

vy 73
Andreas

Title: Re:Convert .bin firmware to dfu file
Post by: WD8BXS on 30. April 2021, 17:40:18

No, I mean a blank new mcu,

Title: Re:Convert .bin firmware to dfu file
Post by: DF8OE on 01. May 2021, 04:22:07

For a blank new MCU you can assemble the two .bin-files to one "big" starting at 0x08000000.

EDIT:
But it is not simply merging the two files. You have to add 0xFFs behind the bootloader to fill the space where the virtual EEPROM resides.

vy 73
Andreas


Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.