cancel
Showing results for 
Search instead for 
Did you mean: 

I have a personal project, using a STM32F427ZGT. I flash by DFU, using STM32CubeProgrammer IDE without a problem. But I should program it by the terminal. I tried to use dfu-util without success.

FabioVasconcelos
Associate II

$ 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

4 REPLIES 4

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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!

STMCubeprogrammer have CLI version with perfect compatibility with DFU.

Why you dont use it.

.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.

https://github.com/STMicroelectronics/STM32CubeF7/blob/master/Projects/STM32F723E-Discovery/Applications/USB_Device/DFU_Standalone/readme.txt

http://rc.fdr.hu/UM0391.pdf

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..