# Flashing

> Put the firmware on the board from the browser, or with esptool.

Source: https://deckconnector.com/docs/flashing/

## In the browser

The [flasher](https://deckconnector.com/flash/) writes the latest stable [release](https://deckconnector.com/docs/updates/#releases). It needs Chrome or Edge on a computer.

After flashing, the flasher can join your Wi-Fi over the same cable. Everything else follows in the [web setup](https://deckconnector.com/docs/first-setup/).

The flasher writes only the main chip. The Wi-Fi chip gets its firmware as a normal [update](https://deckconnector.com/docs/updates/).

Something went wrong? See [Flashing problems](https://deckconnector.com/docs/flash-troubleshooting/).

## With esptool

Use [esptool](https://docs.espressif.com/projects/esptool/) 5 or newer with the files from a [release](https://deckconnector.com/docs/updates/#releases).

**Full install**

```bash
esptool --chip esp32p4 -p /dev/ttyACM0 erase-flash
esptool --chip esp32p4 -p /dev/ttyACM0 -b 921600 write-flash 0x0 deckconnector-factory.bin
```

**Update**

```bash
esptool --chip esp32p4 -p /dev/ttyACM0 -b 921600 write-flash 0xf000 ota_data_initial.bin 0x20000 deckconnector.bin
```

On Windows the port is `COM3` or similar, on macOS `/dev/cu.*`.

Next: [First setup](https://deckconnector.com/docs/first-setup/)
