STM32 USB DFU flasher in the browser

Program an STM32 in DFU mode (0483:DF11) over WebUSB: reads the flash layout the bootloader reports, erases by sector, writes, verifies, reads back and leaves DFU to run.

How to use it

  1. Hold BOOT0 high and reset the STM32 (or plug in its USB): it appears as “STM32 BOOTLOADER”, 0483:DF11.
  2. Open the image, press Connect and pick the device; the page reads the flash layout the bootloader reports.
  3. Program: the sectors the image touches are erased, written in transfer-size blocks and read back; then the chip leaves DFU and runs.

Questions

Windows does not list the device. Why?

The browser can only open it through the WinUSB driver. If it is missing from the list, or listed but refuses to open, use Zadig to give the “STM32 BOOTLOADER” device WinUSB (STM32CubeProgrammer can still use it afterwards in most versions).

Can it open a .dfu file?

Yes: a DfuSe file’s target images are read with their addresses and its CRC is checked. A plain HEX, S19 or BIN works too.

What is the difference from dfu-util?

The same DfuSe commands (set address, erase, download, leave) from the browser, with no install; the page also reads back to verify, which dfu-util does not do by default.

Is my firmware uploaded?

No. The file is read by your browser in this tab and never sent anywhere; there is no server that could receive it.

Related tools

Also useful for: dfu-util, stm32 dfu, dfuse, stm32 bootloader usb, df11, webdfu, .dfu file, blackpill flash.