OpenGate — Flash Firmware

Flash your ESP32 directly from your browser. No software to install — just a USB cable and Chrome or Edge.

Your browser does not support Web Serial. Please use Google Chrome or Microsoft Edge on a desktop computer.

1. Choose your gate type

Atlantis

36 glyphs
SG-1

39 glyphs
SG-1 (Motorized)
Motorized ring
39 glyphs
Tollan

39 glyphs
Orlin

39 glyphs

3. Connect & flash

Disconnect the LED strips and the sound module from the board, or plug in the gate's own power supply. Writing the flash draws short current peaks, and a USB port feeding the strips as well can dip just enough to corrupt the write.

Plug in your ESP32 via USB to this computer.

Click the button below and select the serial port of your ESP32.

The firmware will be flashed automatically. This takes about 60 seconds.

Select a gate type above to continue.

4. Configure WiFi

After flashing, unplug and replug your ESP32. It will create a WiFi hotspot named Stargate-Config.

Connect to it with your phone or laptop and follow the captive portal to enter your WiFi credentials and MQTT settings.

Once configured, your gate will reboot and connect to the OpenGate network automatically.

Troubleshooting

My ESP32 doesn't show up in the port picker

By far the most common cause: missing USB drivers. Most ESP32 boards use a Silicon Labs CP210x chip to talk over USB. Without the driver, your computer can't see it as a serial port at all — so it simply won't appear when you click the flash button, even though the cable is plugged in correctly.

Fix (mainly needed on Windows):

  1. Download the CP210x Universal Windows Driver from Silicon Labs: silabs.com – USB to UART Bridge VCP Drivers
  2. Extract the downloaded zip file.
  3. Right-click silabser.inf inside it and choose Install.
  4. Unplug and replug your ESP32.
  5. Refresh this page and try flashing again.

macOS and Linux usually handle this chip without extra setup, but if the port still doesn't show up there either, the same page above also has drivers for those platforms.

Flashing stopped partway through — “Failed to write compressed data to flash”

If the error mentions status 193, that is the ESP32 itself reporting ESP_BAD_DATA_CHECKSUM: the data it received over USB did not match what your browser sent. The firmware is fine — the bytes were damaged on the way in. The two usual causes are a power dip on the board and a poor USB link.

Your gate is not bricked. Flash memory is rewritable, and only the firmware area was being written — so as long as you leave Erase device unchecked, your gate keeps its identity, WiFi settings, LED calibration and progress. The board simply will not boot until the write completes.

To recover:

  1. Unplug everything from the board except the USB cable — LED strips, sound module, DHD buttons.
  2. Use a short, good-quality USB data cable, plugged directly into the computer — no hub, no extension lead. A long or thin cable is the single most common culprit.
  3. If the board does not appear, hold the BOOT button down while you plug it in to force download mode, and keep holding until the port is selected.
  4. Flash again, leaving Erase device unchecked. Repeating a failed write is harmless.
  5. If it fails at the same point every time, the USB-to-serial speed is likely too high for your cable. Reach out on Discord and we will walk you through flashing at a lower speed.