ESP32 Quickstart - JRInge/Tasmota GitHub Wiki
My way of getting Tasmota going from scratch on the ESP32:
-
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. -
Add the new variant into platformio_tasmota_cenv.ini.
-
Load the repo into Gitpod by prefixing the address with
https://gitpod.io/#
-
Add the
secrets.h
file to thetasmota
folder in Gitpod. -
Compile the firmware using the Gitpod console:
platformio run -e tasmota32-variantname
-
Download the compiled
.bin
file from thebuild_output/firmware
folder in Gitpod. -
Download the flashing files required to bootstrap the ESP32 from the Tasmota-firmware repo.
-
Install
esptool
if necessary:sudo apt install esptool
-
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.