fix: Update dfu-util to 0.11 on Windows and Linux#114
Conversation
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
|
Hi @geosmall |
|
Hi @geosmall I've had some time to tests the dfu-utils 0.11. I tried to understand why you want update it and check your fork. I'm agree having an up to date version is better anyway it is not reliable for the maple upload (error code return or libusb error while it is properly flashed and reset not functional). I already think about having a generic dfu upload method (thanks the stm32cubeprogrammer if present or fallback to dfu-util). I see 2 ways to deal with this:
|
|
Thanks for looking at this @fpistm I understand this is an edge case. I have not explored dfu using stm32cubeprogrammer so should try that path as more reliable/maintainable option and report back. Feel free to close the issue as you see best. |
|
Thanks @geosmall for your quick feedback. |
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-addressflag is required for STM32 DFU uploads.Error on Windows:
Linux Update
The Linux binaries were also outdated (x86_64 was version 0.8 from 2014).
Changes
Windows
win/dfu-util.exeto 0.11 static build (self-contained, no DLL dependencies)cygwin1.dll,cygiconv-2.dll) - ~2.9MB reductionlibusb0.dll(old libusb-0.1, not used by dfu-util 0.11)Linux
linux/x86_64/dfu-utilfrom 0.8 to 0.11linux/x86_64/dfu-prefixanddfu-suffixto 0.11linux/aarch64/dfu-util,dfu-prefix,dfu-suffixto 0.11Result
All platforms now consistent at dfu-util 0.11:
Source
dfu-util 0.11 from: http://dfu-util.sourceforge.net/releases/
Testing