2023-02-28 07:31 AM
$ dfu-util -a 0 -D ./lsc2-01.bin -s 0x08000000
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: Cannot open DFU device 13d3:56fb
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
dfu-util: Cannot claim interface
--------------------------------------------------------------------------------------------------------
$ sudo dfu-util -a 0 -D ./lsc2-01.bin -s 0x08000000
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: More than one DFU capable USB device found! Try `--list' and specify the serial number or disconnect all but one device
2023-02-28 08:34 AM
It's an open source project, you might have to debug and maintain it yourself if the people working on it have moved on.
It's complaining about the signature, what's that look like? What created the .DFU?
Check ST's DFU format documentation
A .BIN is not in .DFU format, perhaps start there.
2023-02-28 09:03 AM
Hello Tesla DeLorean (Great name by the way).
Yes, the dfu-util is an open-source project and it is still maintained.
It also has become (as far as I know a standard to update firmware in USB devices).
The signature I think is related to the DFU USB device. The DFU that the errors are mentioned is related to the DFU device.
A Bin is a full binary with the firmware. In this Chip, the USB DFU Bootlader is implemented in hardware, not the firmware.
In fact, we manage to program a STM32F439 (on a nucleo F439ZI) via dfu-util.
I am starting to think if the STM32F427ZGT has some difference in DFU implementation when compared to STM32F439. I read something related to Dfuse, but didn't find a solution.
Thank you!
2023-02-28 09:41 AM
STMCubeprogrammer have CLI version with perfect compatibility with DFU.
Why you dont use it.
2023-02-28 12:16 PM
.DFU files are a special object file format. Typically generated by DfuSe or DFU Manager. In the past I've built direct packaging tools, like a HEX2DFU application.
They refer to this UM0391 document, but it's not findable as a direct link on their site.
I think STM32 Cube Programmer can perhaps side-step this and process HEX or BIN files into a protocol compatible format with regard to how it connects to the target STM32 in "BOOT LOADER" mode. You have to watch the VID/PID of the device if you've coded your own DFU Device firmware.