dfu-util
More info
- Type
- Command-line tool
- License
- GPL-2.0
- Website
- dfu-util.sourceforge.net
The free command-line tool for pushing firmware to, and pulling it from, devices that implement the USB DFU class.
USB DFU is a standard class for firmware updates, and dfu-util is the host side: it lists DFU devices, picks an alternate memory region and sends an image. It started in the Openmoko project around 2007 and handles DFU 1.0, 1.1 and ST's own DfuSe extension, which the ROM bootloader in many STM32 parts speaks.
The terminology belongs to the spec rather than the tool, but the tool takes the blame: -D, "download", sends firmware to the device, while -U, "upload", reads it back. Direction is counted from the device's point of view. Mix them up and at best you get a copy of the old firmware; at worst, an empty file that overwrites the new one.