ESP32 Quickstart - JRInge/Tasmota GitHub Wiki

My way of getting Tasmota going from scratch on the ESP32:

  1. Add suitable configuration options to tasmota/user_config_override.h, using the definitions in tasmota/my_user_config.h as a basis. For a new device variant, this should go in an #ifdef block for a new FIRMWARE_ flag.

  2. Add the new variant into platformio_tasmota_cenv.ini.

  3. Load the repo into Gitpod by prefixing the address with https://gitpod.io/#

  4. Add the secrets.h file to the tasmota folder in Gitpod.

  5. Compile the firmware using the Gitpod console: platformio run -e tasmota32-variantname

  6. Download the compiled .bin file from the build_output/firmware folder in Gitpod.

  7. Download the flashing files required to bootstrap the ESP32 from the Tasmota-firmware repo.

  8. Install esptool if necessary: sudo apt install esptool

  9. Plug in the ESP32 to a USB port and flash the new firmware as follows:

    esptool --chip esp32 --port /dev/ttyUSB0 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect 0x1000 bootloader_dout_40m.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 tasmota32-variantname.bin

Check that tasmota32-variantname.bin is the correct firmware file, and that the port parameter is correct. Once the device is rest, Tasmota should be loaded ready for configuration.