Skip to content

Flashing the firmware

sorinbotirla edited this page Feb 23, 2025 · 13 revisions

Flashing the firmware

You can flash the firmware either by using the precompiled bin files under the release section, or by compiling the ino project on Arduino IDE.

Compiling the code using Arduino IDE

Install and open the the latest release of Arduino IDE In the Arduino IDE, go to File>Preferences Add the following URLs to Additional Boards Manager URLs:
https://dl.espressif.com/dl/package_esp32_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
Go to Tools>Board>Boards Manager, search for esp32 and install esp32 by Espressif Systems
Make sure it is version 2.0.10 Install the CP210X Drivers Install the CH340X Drivers

With any text editor, open platform.txt file which is located on:
Windows: C:\Users\<USERNAME>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\platform.txt
Linux or Mac: /home/<USERNAME>/.arduino15/packages/esp32/hardware/esp32/2.0.10/platform.txt
(replace <USERNAME> with your username)

In the platform.txt file:

Add -w to the following compiler settings
    build.extra_flags.esp32
    build.extra_flags.esp32s2
    build.extra_flags.esp32s3
    build.extra_flags.esp32c3
Add -zmuldefs to the following compiler settings
    compiler.c.elf.libs.esp32
    compiler.c.elf.libs.esp32s2
    compiler.c.elf.libs.esp32s3
    compiler.c.elf.libs.esp32c3

2. Install the required libraries:

3. Follow these instructions for installing ESP32 Spiffs Tool

Clone this wiki locally