Flash the firmware

Install or update the EDEXTRON firmware from the browser, with esptool, or from source with PlatformIO.

Supported boards

The installer has one firmware per chip. Pick your board at the top of the Flash page first.

Board Chip Notes
ESP32-C3 Super Mini (alone or on the USB-JST V1.2 kit) ESP32-C3 Relays on GPIO0 and GPIO1 (ports J3 and J4 of the kit)
ESP32 DevKit (classic ESP32, WROOM-32 module, 30 or 38 pins) ESP32 Dual core, 4 MB flash or more. 2 external relays, default GPIO26/GPIO27, confirmed on /hw (see below)

Pairing codes are 4 digits. An ESP32-C3 board must be flashed with firmware 1.1.4 (the version the Flash page installs) to pair with them; 1.1.3 and older only accept the old 8-character code. A board that is already paired keeps working.

ESP32-S2, S3, C6 and single-core modules are not supported yet.

If the installer says "Your ESP32 board is not supported", it read your board's chip and it is not the chip of the board you picked. It stops before it erases or writes anything, so the board is unchanged. Close the installer, pick the other board on the Flash page and try again. Do not flash another board's file by hand: a firmware image built for a different chip will not boot. If neither board works, read the chip name printed on the board's metal shield (for example ESP32-WROOM-32), note the board's model or shop link, and send both to EDEXTRON support.

Classic ESP32 DevKit: relays need confirmation on /hw

The DevKit build drives two external relay modules, default GPIO26 (relay 1) and GPIO27 (relay 2). See the ESP32 DevKit wiring guide. Polarity differs between relay modules and a wrong guess could switch a relay on at power-up, so this firmware keeps every output OFF until you confirm it locally:

  1. Unplug relays and loads, install the firmware, then set up Wi-Fi and pair the board as usual.
  2. The board appears online with relays that reject commands (including /update and /u, which answer 403). That is expected.
  3. Open the board's own page at http://<board IP>/hw on the same Wi-Fi. First choose the board's pin layout (30-pin or 38-pin: the two DevKit entries on the Flash page install the same firmware, and the layout is stored on the board here). Then set the ON level (HIGH or LOW) of each relay to match your module, and confirm it. The buzzer of the tank water alarm project is part of the confirmed map.
  4. Test with no load connected, then connect the load.

Use 3.3 V signals only: never feed 5 V into a GPIO. A relay input should have its own pull resistor so it stays off while the board is starting or has no firmware. Press BOOT while the installer says "Connecting" if the install does not start, and press EN once when it has finished.

The Flash page installs the firmware straight from the browser over USB (Web Serial, using ESP Web Tools).

  1. Use desktop Chrome or Edge. Firefox, Safari and phones cannot do Web Serial.
  2. Plug the Super Mini into the computer with a USB-C data cable.
  3. On the Flash page, start the install and choose the board's port. The ESP32-C3's built-in USB usually shows up as "USB JTAG/serial debug unit". No driver is needed on current Windows, macOS or Linux.
  4. Confirm the install. Leave the erase option unticked for a normal update: the board keeps its Wi-Fi settings, MQTT settings and cloud link. Tick it only for a clean install. Afterwards you must set up Wi-Fi again and pair with a new code.
  5. Wait for the install to finish, then close the installer. This releases the USB port.

The installer does not set up Wi-Fi for this firmware (no Improv support). After flashing, join the board's EDEXTRON-XXXX hotspot as described in Wi-Fi and cloud setup.

If the board is not detected or flashing fails

  • Try another cable. Many USB-C cables only carry power.
  • Close every other program using the port (serial monitors, Arduino IDE, PlatformIO, another browser tab).
  • Put the board in download mode: unplug USB, hold BOOT, plug USB back in, then release BOOT. You can also hold BOOT and press RST once. Then start the install again.
  • After flashing in download mode, unplug and replug the board (or press RST) so the new firmware starts.

Firmware files

All releases are published at:

https://iot.edextron.com/firmware/usb-jst-v1.2/stable.json       ESP32-C3 Super Mini
https://iot.edextron.com/firmware/usb-jst-v1.2/<version>/cloud/
https://iot.edextron.com/firmware/esp32-devkit/stable.json       classic ESP32 DevKit
https://iot.edextron.com/firmware/esp32-devkit/<version>/cloud/

stable.json points to the current recommended version. Each version folder contains:

File Flash offset Purpose
manifest.json – ESP Web Tools manifest
bootloader.bin 0x0 ESP32-C3 bootloader
partitions.bin 0x8000 Partition table
boot_app0.bin 0xE000 OTA boot selector
firmware.bin 0x10000 The application
factory.bin 0x0 All of the above merged into one image, for recovery
SHA256SUMS – Checksums of the files

Note: the offsets above are for the ESP32-C3, whose bootloader goes at 0x0. On the classic ESP32 (esp32-devkit) the bootloader goes at 0x1000, and the esptool chip name is esp32, not esp32c3. factory.bin is written at 0x0 on both. Never mix files from the two folders.

Versioned files never change after release. Check a download against SHA256SUMS:

sha256sum -c SHA256SUMS --ignore-missing
Get-FileHash .\firmware.bin -Algorithm SHA256

Option 2: esptool (command line)

Install esptool (pip install esptool). Use your own port: COM3 on Windows, /dev/ttyACM0 on Linux, /dev/cu.usbmodem... on macOS.

Recovery or clean install with the merged image:

esptool --chip esp32c3 --port COM3 write_flash 0x0 factory.bin

factory.bin also overwrites the area where the board keeps its settings. Expect to set up Wi-Fi again and pair with a new pairing code afterwards. Use it to recover a board that no longer boots, not for routine updates.

Update and keep settings: write the four parts instead:

esptool --chip esp32c3 --port COM3 write_flash 0x0 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin

Older esptool versions are called esptool.py; newer ones also accept write-flash.

Option 3: build from source with PlatformIO

Use this when you change include/config.h (relay polarity, the kit button, Wi-Fi power).

cd firmware/esp32-relay
pio run -e supermini-cloud -t upload
pio device monitor

The serial monitor runs at 115200 baud. The supermini-cloud build connects to wss://iot.edextron.com with certificate checking. Building from source keeps the board's saved settings.