This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-07-24

How to Initialize ESP32 Firmware

How to restore ESP32 firmware on TWELITE SPOT to the factory default state
    This guide shows how to manually restore the firmware written to the ESP32 on TWELITE SPOT to the factory default state using esptool.

    Install esptool

    Install Python

    If Python 3.7 or later is not installed, please install Python 3.7 or later.

    https://www.python.org/downloads/

    Install esptool itself

    Install esptool from PyPI.

    
    
    pip install esptool

    Connect to the host

    Connect TWELITE R3 / R2

    Connect the TWELITE R3 / R2 to the 7P interface (the side labeled ESP32).

    Connect power

    Supply 5V power to the USB-C connector on the side.

    Connection example (ESP32)

    Obtain the binary file

    Please download spot-server-2023-05-bin.zip from the link below.

    spot-server-2023-05-bin.zip

    After downloading, unzip the file.

    Start ESP32 in programming mode

    Press the ESP32 reset switch EN(RST) and the ESP32 boot switch BOOT on TWELITE SPOT, then release them in the order EN(RST) -> BOOT.

    Button locations

    Button locations

    Write with esptool

    On the terminal where esptool is installed, navigate to the folder where you extracted spot-server-2023-05-bin.zip, and run the following:

    
    
    esptool --chip esp32 --port {Serial Port} --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode qio --flash_freq 80m --flash_size 16MB 0x1000 spot-server.ino.bootloader.bin 0x8000 spot-server.ino.partitions.bin 0xe000 boot_app0.bin 0x10000 spot-server.ino.bin 0x100000 spot-server.littlefs.bin

    Reset ESP32

    After writing is complete, press and release the ESP32 reset switch EN(RST) on TWELITE SPOT to reset ESP32.

    Reset switch location

    Reset switch location