Skip to content

Instantly share code, notes, and snippets.

@theodric
Created February 6, 2026 21:27
Show Gist options
  • Select an option

  • Save theodric/d317607dcdf0fde8f273e380623584e5 to your computer and use it in GitHub Desktop.

Select an option

Save theodric/d317607dcdf0fde8f273e380623584e5 to your computer and use it in GitHub Desktop.
Flash compiled ESPHome firmware from CLI
The ESP32-S2 Mini (piece of shit) will flop between ttyACM0 and ttyACM1, so you can't use the web flasher. Hold down the 0 button, press the RST button, DO NOT RELEASE THE 0 BUTTON, and hit enter on the following command.
esptool.py --chip esp32s2 --port /dev/ttyACM0 write_flash 0x0 /path/to/whatever.factory.bin
If it fails, keep 0 held, RST again, and try again (or replace ACM0 with ACM1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment