Skip to content

Conversation

@geosmall
Copy link

@geosmall geosmall commented Jan 4, 2026

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

The previous dfu-util.exe (0.1+svn from 2007-2008) lacked DfuSe support.
The -s/--dfuse-address flag is required for STM32 DFU uploads to specify
the flash start address (e.g., -s 0x08000000:leave).

Changes:
- Update dfu-util.exe to 0.11 static build (self-contained, no DLL deps)
- Remove unused Cygwin DLLs (cygwin1.dll, cygiconv-2.dll)
- Remove unused libusb0.dll (old libusb-0.1, not used by dfu-util 0.11)

Source: http://dfu-util.sourceforge.net/releases/dfu-util-0.11-binaries.tar.xz

Fixes: "invalid option -- s" error on Windows DFU uploads
- Linux x86_64: 0.8 → 0.11
- Linux aarch64: updated to 0.11
- All platforms now consistent at dfu-util 0.11
@geosmall geosmall changed the title fix(win): Update dfu-util.exe to 0.11 for DfuSe support fix: Update dfu-util to 0.11 on Windows and Linux Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant