Skip to main content
FabioVasconcelos
Associate II
February 28, 2023
Question

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.

  • February 28, 2023
  • 1 reply
  • 3291 views

$ 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

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
February 28, 2023

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 VenmoUp vote any posts that you find helpful, it shows what's working..
FabioVasconcelos
Associate II
February 28, 2023

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!

MM..1
Chief III
February 28, 2023

STMCubeprogrammer have CLI version with perfect compatibility with DFU.

Why you dont use it.