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

1. 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

2. Go to Tools>Board>Boards Manager, search for esp32 and install esp32 by Espressif Systems

Make sure it is version 2.0.10

If you're using windows
Install the CP210X Drivers
Install the CH340X Drivers

3. 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//.arduino15/packages/esp32/hardware/esp32/2.0.10/platform.txt (replace 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

alternatively you can rename the platform.txt to platform.txt_bak (to make a backup) and copy the file from the other-files/platform.txt from this repository

4. Install the required libraries:

5. Follow these instructions for installing ESP32 Spiffs Tool

Clone this wiki locally