WendyOS Docs
Set up a device

ESP32 (beta)

Develop and deploy native ESP-IDF apps to supported ESP32 devices with Wendy

ESP32 development boards

ESP32 with Wendy

Wendy supports regular, native ESP-IDF projects on ESP32. This is the recommended way to build ESP32 apps: keep the standard ESP-IDF project layout and APIs, then use wendy run to select the correct chip target, build, deploy, reboot, and stream logs.

Swift and other WebAssembly apps remain available through the optional Wendy Lite WASM runtime, but new projects should start with native ESP-IDF unless they specifically need WASM portability.

Supported targets: ESP32-C5, ESP32-C6, ESP32-C61, ESP32-P4, and ESP32-S3. When the installer offers multiple firmware variants, choose one labeled native app support. ESP32-P4 support is available for the boards listed by the installer.

Prefer to follow along with video? This one flashes a board, creates an app and deploys it.

What you'll need

  • A supported ESP32 development board
  • A USB data cable
  • The Wendy CLI (install it)
  • An existing ESP-IDF project, or a new project created with the standard ESP-IDF tooling

Wendy uses the ESP-IDF Installation Manager (eim) to run ESP-IDF 6.0.3. If eim is missing, wendy run offers to install it with Homebrew (brew install espressif/eim/eim); without Homebrew, install it yourself. If ESP-IDF 6.0.3 is not installed, the first wendy run installs it for you.

Install the Wendy firmware

Connect Your Board

Plug the ESP32 into your development machine over USB. If the board has separate UART and native USB ports, prefer native USB.

Install the Firmware

Run:

wendy install
The Wendy CLI prompting you to choose an ESP32 target and board

Select the target that matches your chip, then choose your board. For generic ESP32-C5, ESP32-C6, and ESP32-S3 boards, select the variant labeled native app support.

If multiple ESP32 USB candidates are connected, choose the device to flash from the serial port picker. Each entry shows its port path and whether it uses native USB or a USB-UART bridge. A single candidate is selected automatically.

The CLI verifies the chip model before writing and flashes the downloaded Wendy firmware directly. No separate esptool installation is required. Flash retries keep your selected port; if it disappears, the CLI asks you to select a device again.

Discover Your Device

After the board reboots, run:

wendy discover
The Wendy CLI listing a discovered ESP32 board

The ESP32 can be discovered over its native USB connection or over the network after Wi-Fi provisioning.

ESP-Mosaico

Mosaico uses an ESP32-S31 and a dedicated 16 MB firmware layout. Select ESP-Mosaico in the wendy install picker once that firmware has been published. From the powered-off state, hold BOOT, briefly press POWER, then release BOOT with USB connected. The installer resets the S31 through its watchdog after the flash completes.

The running dashboard exposes two USB CDC ports. Use the first for Wendy management and native deployment; the second carries independent diagnostics. From samples/mosaico_dashboard in the firmware checkout:

wendy run --device wendy-lite:PORT --yes --detach

The sample's wendy-idf.json selects a digest-pinned ESP-IDF container, target esp32s31, preview: true, and workspaceRoot: "../.." so the build can access shared firmware components. Docker must be running. The workspace root is relative to the project and must contain it. The CLI mounts that workspace at /project, builds, uploads the app into the inactive OTA slot, and reboots. Projects without this file continue to use the EIM toolchain. Native app uploads require an existing compatible partition layout; use wendy install for the first installation.

Use a regular ESP-IDF project

Wendy recognizes the standard ESP-IDF project markers: a top-level CMakeLists.txt that includes project.cmake, or an sdkconfig/sdkconfig.defaults file. Keep the normal ESP-IDF layout and add a small wendy.json manifest:

hello-esp32/
├── CMakeLists.txt
├── sdkconfig.defaults
├── wendy.json
└── main/
    ├── CMakeLists.txt
    ├── idf_component.yml
    └── main.c

The top-level CMakeLists.txt remains standard ESP-IDF:

cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(hello_esp32)

Add a Wendy manifest using the wendy-lite device platform:

{
  "$schema": "https://wendy.dev/schemas/wendy.json",
  "appId": "com.example.hello-esp32",
  "version": "0.1.0",
  "platform": "wendy-lite",
  "entitlements": []
}

Your project also needs the wendy_core component. When it is missing, wendy run offers to add the dependency and initialize it in app_main(), then retries the build. This supports C and C++ projects with a single app_main() definition under main/. Use wendy run --yes to accept setup without a prompt.

To configure it manually, declare the dependency in main/idf_component.yml:

dependencies:
  idf:
    version: ">=5.5.0"
  wendy_core:
    git: "https://github.com/wendylabsinc/wendy-lite.git"
    path: "components/wendy_core"

Then require it from your component in main/CMakeLists.txt:

idf_component_register(SRCS "main.c"
                    INCLUDE_DIRS "."
                    REQUIRES wendy_core)

Then call wendy_core_init() as the very first thing in app_main():

#include "wendy_core.h"

void app_main(void)
{
    ESP_ERROR_CHECK(wendy_core_init());

    /* Your application starts here. */
}

wendy_core is what makes the device manageable by the Wendy CLI and reachable through Wendy Cloud. Apart from that, your app code uses normal ESP-IDF components and APIs — no other custom SDK or wrapper is required. See Native Apps for Wendy Lite for the full walkthrough, including which peripherals (USB, Wi-Fi, BLE) Wendy Lite owns and your app must not configure itself.

Start from a template

The quickest way to start is from a template instead of building this by hand:

mkdir my-app && cd my-app
wendy init --template blink-rgb-led

This scaffolds a minimal project with the manifest and wendy_core already wired up.

Deploy

From the ESP-IDF project directory, run:

wendy run

Wendy:

  1. Detects the project as ESP-IDF.
  2. Reads the target from the connected device.
  3. Runs idf.py set-target when the project is configured for a different chip.
  4. Builds the project with ESP-IDF 6.0.3.
  5. Uploads the native application firmware, reboots the ESP32, and reconnects.
  6. Streams the ESP-IDF console output back to your terminal.

Optional: manage the board through Wendy Cloud

For remote access, connect the board over USB, configure its Wi-Fi, and enroll it in Wendy Cloud. The enrollment guide walks through sign-in, board selection, and checking that it comes online. You can keep developing locally without Cloud enrollment.

Optional WASM apps

Wendy Lite can also run Swift and other WebAssembly guests on firmware variants with WASM support. This path is useful when application portability is more important than direct access to the complete ESP-IDF API. See the Wendy Lite reference for the WASM SDK, host API, and deployment details.

Next steps

On this page