Flashing ESP Boards on Ubuntu Linux

Flashing the compact, affordable Wi-Fi boards like ESP8266s and ESP32s is very easy to do using the terminal.

sudo apt install esptool

We need a .bin file to flash to the ESP boards. This could be the latest release of Tasmota, or a preconfigured ESPHome binary. I already have ESPHome running on my Docker server, so I’ll be using it.

To download binaries from ESPHome, just create a new configuration, then click Options -> Compile. Once it is finished compiling, you can download the binary.

Now to flash this binary, we can use esptool. Just plug in the ESP board, and flash the binary using that tool.

sudo esptool write_flash 0 ~/Downloads/FIRMWARE-HERE.bin

Leave a Reply

Your email address will not be published. Required fields are marked *