Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Gurux DLMS MeterStudio
  3. Gurux DLMS MeterStudio
  4. Build
  5. ESP32-S3
By Gurux Documentation , 30 November, 2026
Gurux DLMS MeterStudio

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:

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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Book navigation

  • Standard
  • Target
  • Referencing
  • Transport
  • Associations
  • Passwords
  • Security
  • Objects
  • Validation
  • ZIP
  • Build
    • ESP32-S3
    • STM32L433RC
    • EFR32MG13P
    • nRF9160

Hire Us!

Latest Releases

  • Mon, 11/30/2026 - 14:21
    gurux.dlms.c 9.0.2611.3001
  • Thu, 11/26/2026 - 15:24
    gurux.dlms.c 9.0.2611.2601
  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin