ESP8266 and ESP32 family serial flasher based on esptool.py.
Flashing should work for ESP32, ESP32-S3, ESP32-C3, and ESP8266.
If you have an ELF file that flashes correctly with esptool.py
but not with this tool then please open an issue with the ELF in question.
The docker image esprs/espflash
contains all necessary toolchains and tooling including espflash to build and flash.
To clone, build and flash the esp32-hal examples run the following:
git clone https://github.com/esp-rs/esp32-hal
cd esp32-hal
docker run -v "$(pwd):/espflash" --device=/dev/ttyUSB0 -ti esprs/espflash --release --tool=cargo --example=blinky /dev/ttyUSB0
git clone --depth 1 https://github.com/esp-rs/espflash.git
cd espflash
docker build -t esprs/espflash .