/      日本語

How to Upload Files to ESP32 (Arduino IDE 2.x)

Method for uploading files to the ESP32 mounted on TWELITE SPOT
This guide explains how to upload files (files under the data/ folder) to the ESP32 mounted on TWELITE SPOT.

Installing the Plugin

Install the Arduino IDE 2.x plugin (earlephilhower/arduino-littlefs-upload) for uploading files to the ESP32 flash area.

Download the Plugin

Download arduino-littlefs-upload-x.x.x.vsix from the following page:

Releases · earlephilhower/arduino-littlefs-upload

Install the Plugin

Place the downloaded arduino-littlefs-upload-x.x.x.vsix in .arduinoIDE/plugins under your user directory.

  • Windows example: C:\Users\foo\.arduinoIDE\plugins\
  • macOS/Linux example: ~/.arduinoIDE/plugins/

Host Connection

Connect TWELITE R3 / R2

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

Connect Power

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

Connection example (ESP32)

Connection example (ESP32)

Arduino IDE Operations

Open Sketch

Launch Arduino IDE and open your sketch.

Place Files to Upload

  1. Open the sketch folder from Sketch -> Show Sketch Folder.

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

  3. Place the files you want to upload inside the data folder.

Select Serial Port

Select the TWELITE R3 / R2 port from Tools -> Port menu.

Start ESP32 in Program Mode

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

Button locations

Button locations

Execute Upload

  1. Press Ctrl+Shift+P (or +Shift+P on macOS) to open the command palette.

  2. Select Upload LittleFS to Pico/ESP8266/ESP32.

Command palette screen

Command palette screen

Reset ESP32

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

Reset switch location

Reset switch location