# Flash custom firmware

URL: https://docs.assistantcore.com/en/devices/custom-flash

Flash a published release or your own ESP32 .bin files from the browser, with the right offsets for each file.

Use this page to install a specific firmware release, or firmware you built yourself, on an ESP32 board. To install the current release for a supported device, [Flash firmware](/en/devices/flash-firmware) is simpler.

<Callout type="warn">
Flashing replaces the firmware on the board. Firmware that does not point at Assistant Core cannot connect to your assistant; see [Configure the OTA URL](/en/devices/configure-ota-url).
</Callout>

## Before you start [#before-you-start]

- The same browser, USB cable, and driver as for [flashing firmware](/en/devices/flash-firmware#before-you-start).

## Published releases [#published-releases]

Select a board to see every published release, then click **Flash** on a version or **Download** to save the file.

<FirmwareCatalog />

## Flash your own files [#flash-your-own-files]

<CustomFirmwareUpload />

1. Choose **Quick Flash** or **Advanced** (see below).
2. Under **Target chip**, select the chip of your board (most supported devices use `ESP32-S3`).
3. Drop your `.bin` files, check the offsets, and click **Flash to Device**.
4. Click **Connect Device**, choose the serial port, then click **Flash Firmware**.

### Quick Flash [#quick-flash]

For one merged image that contains everything. It is written at `0x0`. To create one with ESP-IDF:

```bash
idf.py merge-bin -o merged.bin
```

### Advanced [#advanced]

For separate files from `idf.py build`. The tool fills in the offset from the file name; check every value against your partition table. For Xiaozhi firmware on ESP32-S3 with the default 16 MB layout (`partitions/v2/16m.csv`):

| File | Offset |
| --- | --- |
| `bootloader.bin` | `0x0` |
| `partition-table.bin` | `0x8000` |
| `ota_data_initial.bin` | `0xD000` |
| App image (for example `xiaozhi.bin`) | `0x20000` |
| `generated_assets.bin` (assets) | `0x800000` |

The tool does not recognize the assets file by name, so set `0x800000` for it yourself. On ESP32 and ESP32-S2 the bootloader goes at `0x1000` instead of `0x0`. Other partition tables use other offsets; `idf.py build` prints the exact flash command with every offset.

## Troubleshooting [#troubleshooting]

<Accordions>
<Accordion title="The board does not boot after flashing">
An offset is probably wrong. Click **Erase Flash**, then flash again after checking each offset, or use a merged image with **Quick Flash**.
</Accordion>

<Accordion title="MD5 or verification error">
Click **Erase Flash** before flashing, then try again.
</Accordion>
</Accordions>