Update firmware over USB
Open the DMI firmware update page to write firmware to a supported ESP device from your browser. You can select a local .bin file or build firmware from a prepared GitHub repository.
The page is publicly accessible. Building from GitHub requires an active signed-in account. Selecting a local file and flashing over USB do not require the build sign-in flow.
Before you start
- Use a compatible ESP board, a USB data cable, and a browser with Web Serial. Check Platform support.
- Obtain firmware intended for your board, including the correct flash address and flash size. A
.binextension alone does not establish compatibility. - Close other serial monitors and keep the device connected during writing and verification.
The Erase all option erases the entire flash before writing, including existing firmware and stored data. Check this setting before starting. Disable it only when the update instructions for your device allow preserving the rest of flash; written regions will still be replaced.
1. Choose the firmware source
| Source | Steps |
|---|---|
| Local file | Leave the repository field empty, then choose Select .bin firmware file. The file must be nonempty. |
| GitHub | Enter the repository name under dmi-tech/ and branch, then select Build firmware. Follow Build from GitHub. |
On small screens, the source controls use GitHub and File tabs. On desktop, the two source cards are displayed together. A repository entry disables local file selection; clear it before choosing a local file. A selected file disables repository editing; use Remove file to choose another source.
2. Connect the device
Select Connect Device, then choose the board's serial port in the browser prompt. Wait until the page reports Device connected. Selecting a port is not the same as successfully detecting the chip.
The page displays the detected chip and, where available, flash size and MAC address. If these values are missing or uncertain, check the board specification before setting a manual flash size.
For a GitHub build, the page also checks the artifact's reported target against the detected ESP32 chip. A missing target or mismatch keeps the update button disabled. Local files do not have this automatic target-matching check.
3. Review flash settings
| Setting | What to check |
|---|---|
| Flash Address (Hex) | Default 0x0000. Use the address supplied for your image. A non-default address requires confirmation. |
| Flash Size | Auto uses the detected size for the fit check and keeps the device's flash-size setting when writing. Use a manual value only when verified for your board. |
| Erase all | Enabled by default; erases firmware and stored data before writing. |
GitHub builds are prepared as one image for address 0x0000; after downloading the artifact, its address is fixed in the UI. A local application-only binary may require a different address. Do not assume every .bin is a complete image starting at zero.
When the selected/detected capacity is known, the page checks that the file fits at the selected address. This is a size check, not proof that the firmware suits the hardware.
4. Write, verify and reset
- Select Start Firmware Update and review the erase/address confirmation if prompted.
- Follow the pipeline: Package → Connected Device → Flash → Verify → Completed. Package preparation happens automatically when starting the update.
- Keep USB connected while the image is written and its MD5 checksum is checked.
- Wait for the reset step and Completed. If the console says reset could not be confirmed, follow its reconnect/reset hint after writing has finished.
- Check that your device starts and performs its normal function. A successful write does not test the application or its configuration.
The MD5 comparison checks the written image data; it is not a digital signature or a guarantee that a file came from DMI. Use firmware from a trusted source.
This workflow writes directly through USB. GitHub Actions supplies a build artifact; it does not turn this page into an OTA rollout service.
If the build, connection or write fails, see Firmware troubleshooting.