Flash STM32, ESP32 and RP2040 from the browser

Program HEX/S19/BIN/UF2 into an STM32 (UART bootloader, USB DFU, ST-LINK or CMSIS-DAP), an ESP32 or ESP8266 (ROM loader) or an RP2040/RP2350 (PICOBOOT or UF2); verify and read back.

How to use it

  1. Open a HEX, S19, BIN, UF2 or DfuSe image (or use the example); for an ESP32, add the .bin files at their offsets.
  2. Pick the way in: STM32 UART bootloader, USB DFU, an ST-LINK or CMSIS-DAP probe, the ESP ROM loader, or a Pico in BOOTSEL mode. Simulated chips work without hardware.
  3. Erase, program and verify; then run the code or read the flash back to a file.

Questions

Which browsers work?

Chrome and Edge on a computer. The UART and ESP paths need Web Serial; USB DFU, PICOBOOT and the probes need WebUSB (CMSIS-DAP v1 needs WebHID). Saving a UF2 works in any browser.

Which probes work?

ST-LINK/V2, V2-1 and V3 with ST’s own firmware, CMSIS-DAP probes (DAPLink boards, the Raspberry Pi Debug Probe, picoprobe, MCU-Link, J-Link OB in CMSIS-DAP mode), and a SEGGER J-Link through the Floating ECU bridge.

How do I start the UART bootloader?

Hold BOOT0 high (or set the option bytes) and reset the chip. Connect the adapter to the bootloader’s USART pins, usually PA9 and PA10.

Has it been checked on real boards?

Every protocol is tested against a simulator of the chip that follows the published protocol. Try a board you can recover (BOOT0, BOOTSEL or the ESP ROM loader cannot be erased) before a production part.

Straight to a job

Related tools

Also useful for: flash mcu, program microcontroller, stm32flash, stm32cubeprogrammer, an3155, system bootloader, boot0, uart bootloader, cmsis-dap, daplink.