|
|
# ESP32C3-CORE initial flashing
|
|
|
|
|
|
The FreeDSM is based on Tasmota IoT free software. It is possible to flash the device before the complete assembly ... or after that, but inside the chassis, the "Boot" button is not so accesible.
|
|
|
|
|
|
To perform these processes, espfuse and esptool are needed. They are available as Python or compiled for different OS:
|
|
|
|
|
|
- [Python version](https://docs.espressif.com/projects/esptool/en/latest/esp32/)
|
|
|
- [Multiple OS binaries](https://github.com/espressif/esptool/releases/tag/v4.7.0)
|
|
|
|
|
|
Please note that, from this initial flashing, all subsequent updates can be performed through the Tasmota web interface.
|
|
|
|
|
|
## 1 Enabling screen backlight
|
|
|
|
|
|
To enable the Air101 screen backlight, it is needed to "free" the GPIO11 (theorically reserved to provide power to the flash, but the ESP32C3-CORE board provides 3.3V power directly).
|
|
|
|
|
|
Connect the USB-C cable to your computer and push the "Boot" button (around 1 second) of the ESP32 board.
|
|
|
|
|
|
From command line, execute:
|
|
|
|
|
|
```bash
|
|
|
espefuse -p COM99 burn_efuse VDD_SPI_AS_GPIO 1
|
|
|
```
|
|
|
and confirm the efuse burn (not reversible process) writing "BURN"
|
|
|
|
|
|
## 2 Flashing the ESP32C3-CORE board
|
|
|
|
|
|
Connect the USB-C cable to your computer and push the "Boot" button (around 1 second) of the ESP32 board.
|
|
|
|
|
|
The flashing command is:
|
|
|
|
|
|
```bash
|
|
|
esptool.exe --chip esp32-c3 --port COM99 --baud 921600 write_flash -fs 4MB -fm dio --erase-all 0x0 .\freedsm.factory.bin
|
|
|
``` |