Skip to content

Instantly share code, notes, and snippets.

@blark
Last active March 30, 2022 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blark/77e488aad828be550737d369c06d7c6e to your computer and use it in GitHub Desktop.
Save blark/77e488aad828be550737d369c06d7c6e to your computer and use it in GitHub Desktop.
Compiling and flashing Tasmota ESP32-S2

1. Get static binaries needed for ESP32-S2

Get bootloader_dout_40m.bin, partitions.bin and boot_app0.bin from here: https://github.com/tasmota/install/tree/main/static/esp32-s2

2. Compile or get pre-compiled Tasmota

Choose one of the following:

2.1 Precompiled firmware

Unofficial firmware is available from the Tasmota repo

2.2 Compile firmware

Use the docker method to compile the firmware yourself.

Replace <REPO_DIRECTORY> with where you cloned the repository.

docker run -ti --rm -v $(pwd)/<REPO_DIRECTORY>:/tasmota -u $UID:$GID docker-tasmota -e tasmota32s2

3. Flash

Use esptool to flash

esptool.py --chip esp32s2 --baud 921600 --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 tasmota32s2.bin

References:

@BrianDurward
Copy link

This is great! Can I ask how you deal with SSID and wifi password entry?

@blark
Copy link
Author

blark commented Mar 30, 2022

This is great! Can I ask how you deal with SSID and wifi password entry?

You can stick both of those in user_config_override.h assuming you want your devices to join your network automatically.

@BrianDurward
Copy link

I need to work out how to compile. Many thanks though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment