/      日本語

How to Write Files to ESP32

How to write files to the ESP32 mounted on TWELITE SPOT
This guide explains how to write files (the files under the data/ folder) to the ESP32 mounted on TWELITE SPOT.

Installing the Plugin

Install the Arduino plugin (arduino-esp32fs-plugin) to write files to the ESP32 flash area.

Downloading the Plugin

Download esp32fs.zip from the following page:

Release Update to support Big Sur · lorol/arduino-esp32fs-plugin

Installing the Plugin

  1. Extract the downloaded esp32fs.zip.

  2. If there is no tools folder in your Arduino sketchbook location (set in Arduino IDE preferences, e.g., C:\Users\foo\Documents\Arduino), create it.

  3. Create the folder ESP32FS/tool inside the tools folder and place the esp32fs.jar file extracted from the zip there. (Example path: C:\Users\foo\Documents\Arduino\tools\ESP32FS\tool\esp32fs.jar).

  4. The plugin will be available the next time you start Arduino IDE.

Connecting to the Host

Connect TWELITE R3 / R2

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

Connect Power

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

Connection Example (ESP32)

Connection Example (ESP32)

Arduino IDE Operations

Open the Sketch

Start Arduino IDE and open the sketch.

Place Files to Write

  1. Open Sketch -> Show Sketch Folder.

  2. Create a data folder at the same level as the sketch file (.ino).

  3. Place the files to write inside the data folder.

Select Serial Port

From the Tools -> Port menu, select the port for TWELITE R3 / R2.

Serial Port Selection

Serial Port Selection

Boot 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 Positions

Button Positions

Execute Writing

  1. Click Tools -> ESP32 Sketch Data Upload.

  2. At Select FS for /data folder, select LittleFS.

File System Selection Screen

File System Selection Screen

  1. Click OK.

Reset ESP32

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

Reset Switch Position

Reset Switch Position