Use this quick start for MeterStudio's Espressif ESP32-S3 target. It generates an ESP-IDF project; use the ESP-IDF environment rather than the Arm compiler used by the other MCU pages.
1. Prepare the project
Generate and extract the ESP32-S3 project. Open its root directory, containing CMakeLists.txt, sdkconfig.defaults, partitions.csv and the README. Match the board's flash size, PSRAM and pin assignments in MeterStudio before generation.
The commands below use ESP-IDF v5.4.1, a version used to compile generated projects. Use the same SDK version for a project's local and Docker builds. Installation instructions are in the ESP32-S3 getting started guide.
2. Try the local compiler first
Open the ESP-IDF terminal installed with the SDK and change to the extracted project directory:
idf.py --version
idf.py set-target esp32s3
idf.py menuconfig
idf.py build
In menuconfig, configure Meter Wi-Fi if the selected interface needs Wi-Fi. Check the board-specific flash and PSRAM settings too. Setting the target is an initial setup step; preserve the project's configuration for later updates.
Successful output includes the application binary, bootloader, partition table and flash arguments under build/. Use the generated flash arguments rather than guessing binary offsets.
If idf.py is unavailable after activating the installed SDK, continue with Docker.
3. Docker fallback: download and build
Start Docker as described on Build. Download Espressif's image:
docker pull espressif/idf:v5.4.1
In Windows PowerShell, from the extracted project directory:
$projectDir = (Get-Location).Path
docker run --rm -v "${projectDir}:/project" -w /project espressif/idf:v5.4.1 idf.py set-target esp32s3
docker run --rm -it -v "${projectDir}:/project" -w /project espressif/idf:v5.4.1 idf.py menuconfig
docker run --rm -v "${projectDir}:/project" -w /project espressif/idf:v5.4.1 idf.py build
In a Linux shell, use -v "$PWD:/project" instead of the PowerShell path argument. The same build/ directory is visible on the host. Espressif documents the image in its Docker guide.
4. Program the board
Connect the board by USB and identify its serial port. Replace COM3 or /dev/ttyACM0 with your actual port. If needed, hold BOOT while resetting the board to enter its serial downloader.
With a local ESP-IDF installation:
idf.py -p COM3 flash
With Docker on native Linux, expose the actual serial device:
docker run --rm --device=/dev/ttyACM0 -v "$PWD:/project" -w /project espressif/idf:v5.4.1 idf.py -p /dev/ttyACM0 flash
For Windows Docker Desktop, use the host serial bridge provided by Espressif:
- Install the esptool utilities in a Python virtual environment on the Windows host (Python is needed, but no local ESP compiler):
py -m venv .flash-tools
.\.flash-tools\Scripts\python.exe -m pip install "esptool==4.8.1"
- In one PowerShell terminal, start the bridge using the board's port and leave it running:
.\.flash-tools\Scripts\python.exe -m esp_rfc2217_server -v -p 4000 COM3
- In another PowerShell terminal, from the same project directory:
$projectDir = (Get-Location).Path
docker run --rm -v "${projectDir}:/project" -w /project espressif/idf:v5.4.1 idf.py -p "rfc2217://host.docker.internal:4000?ign_set_control" flash
Allow the container to reach the bridge if your firewall requests access; stop the bridge after programming. The bridge gives the container access to that serial device and should be used on your trusted development machine. This avoids installing a local ESP compiler. Espressif describes the bridge in the Docker guide linked above.
5. Check operation and update later
Release BOOT and reset if necessary. Stop the flash bridge before opening a serial monitor or another client. Test the generated server using the selected transport and credentials; a build alone does not provide Wi-Fi credentials or DLMS secrets.
For routine application updates with an unchanged partition layout, use idf.py -p PORT app-flash in the same environment. Initial installation uses flash to include bootloader and partition table. Do not erase NVS or settings/counter partitions during an ordinary update. DLMS Image Transfer/OTA is a separate feature and must be enabled and provisioned in the generated project before use.
Return to Build.