Arduino_Tools icon indicating copy to clipboard operation
Arduino_Tools copied to clipboard

fix: Update dfu-util to 0.11 on Windows and Linux

Open geosmall opened this issue 3 weeks ago • 1 comments

Summary

Update dfu-util to version 0.11 on all platforms for consistent DfuSe support.

Windows Fix (Critical)

The previous Windows dfu-util.exe (version 0.1+svn from 2007-2008) lacked DfuSe support. The -s/--dfuse-address flag is required for STM32 DFU uploads.

Error on Windows:

dfu-util.exe: invalid option -- s

Linux Update

The Linux binaries were also outdated (x86_64 was version 0.8 from 2014).

Changes

Windows

  • Update win/dfu-util.exe to 0.11 static build (self-contained, no DLL dependencies)
  • Remove unused Cygwin DLLs (cygwin1.dll, cygiconv-2.dll) - ~2.9MB reduction
  • Remove unused libusb0.dll (old libusb-0.1, not used by dfu-util 0.11)

Linux

  • Update linux/x86_64/dfu-util from 0.8 to 0.11
  • Update linux/x86_64/dfu-prefix and dfu-suffix to 0.11
  • Update linux/aarch64/dfu-util, dfu-prefix, dfu-suffix to 0.11

Result

All platforms now consistent at dfu-util 0.11:

Platform Before After
Windows 0.1+svn (2007) 0.11
Linux x86_64 0.8 (2014) 0.11
Linux aarch64 unknown 0.11
macOS 0.11 0.11 (unchanged)

Source

dfu-util 0.11 from: http://dfu-util.sourceforge.net/releases/

Testing

  • Windows 11 64-bit: BlackPill F411CE DFU upload successful
  • Linux x86_64: BlackPill F411CE DFU upload successful

geosmall avatar Jan 04 '26 14:01 geosmall