esp32-port

Build, flash, debug, and integrate WiFi for ESP32 variants in OpenWatt workflows.

2|Updated Sep 15, 2023
One-click install
npx skills add https://github.com/open-watt/openwatt --skill esp32-port
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: esp32-port
Source: https://github.com/open-watt/openwatt/tree/main/.claude/skills/esp32-port
Command: npx skills add https://github.com/open-watt/openwatt --skill esp32-port

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Espressif ESP32 platform port provides a cohesive workflow for building, flashing, debugging, and integrating WiFi on ESP32 variants within OpenWatt, addressing platform quirks and configuration.

Core Features & Use Cases

  • Build & Flash: compile D code with ESP-IDF and link with C runtime for ESP32 variants.
  • WiFi Shim & lwIP quirks: wrappers and troubleshooting guidance for ESP-IDF WiFi integration and lwIP non-blocking socket behavior.
  • Troubleshooting & Pitfalls: notes on sdkconfig defaults, partition tables, and two-stage bitcode builds for Xtensa variants.
  • Real-world use: debugging WiFi/network stacks on ESP32 hardware across S3, S2, etc.

Quick Start

Set up your ESP32 development environment and start a build for an ESP32 variant using the included build and flash steps.

Frequently Asked Questions about esp32-port

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and flash ESP32 firmware using ESP-IDF in OpenWatt?▼

To build and flash ESP32 firmware, OpenWatt integrates ESP-IDF v6.0 to compile D code with an LDC-based toolchain and link it with the C runtime. This workflow streamlines compiling and flashing across ESP32 variants.

Does ESP32 port support both Xtensa and RISC-V architecture variants?▼

Yes, ESP32 port supports both Xtensa and RISC-V lines. It specifically handles Xtensa targets using two-stage bitcode builds, while applying platform-level guidance across all supported ESP32 variants.

How do I debug lwIP non-blocking socket behavior on ESP32 WiFi?▼

Debugging lwIP non-blocking socket behavior on ESP32 is handled through WiFi shim wrappers and troubleshooting guidance. OpenWatt provides specific support for resolving these lwIP quirks and ESP-IDF WiFi integration issues.

What are common sdkconfig pitfalls when developing for ESP32 variants?▼

Common sdkconfig pitfalls include misconfigured defaults and partition tables. OpenWatt provides troubleshooting notes on sdkconfig configurations and two-stage bitcode builds to avoid these issues on Xtensa variants.

Can I debug the app_main startup process on ESP32 hardware?▼

Yes, you can debug the app_main startup process. OpenWatt provides platform-level guidance on app_main startup and lwIP socket handling to debug WiFi and network stacks on ESP32 hardware like S2 and S3 variants.