What this thread does
The problem
Choose a stack for an ESP32/Pico sensor, controller or small product. PlatformIO orchestrates builds using Arduino or ESP-IDF underneath. Identify the exact board/chip, peripherals, timing, debug connection and field-update needs first.
Versions and licences
| Stack | As of November 2026 | Main licence |
|---|---|---|
| ESP-IDF | 6.1 release | Apache-2.0 |
| PlatformIO Core | 6.2.0; platform/framework packages are independently versioned | Apache-2.0 |
| Arduino ESP32 core | 3.3.12, based on ESP-IDF 5.5.5 | LGPL-2.1 text; bundled dependencies have their own notices |
| MicroPython | 1.29.0 for ESP32 and Pico | MIT core, port/dependency exceptions |
| CircuitPython | As of November 2026, 10.3.2 stable for Pico; verify a separate download for your ESP32 board | MIT core |
| Rust on ESP32 | esp-hal 1.2.0, bare-metal HAL | MIT OR Apache-2.0 |
| Pico C/C++ SDK | 2.3.1 | BSD-3-Clause |
| Rust on Pico, async on either family | Upstream manifest snapshots embassy-rp 0.10.0, embassy-executor 0.10.0 | Both MIT OR Apache-2.0 in those manifests; published registry releases not verified |
These are independent components, not a tested bill of materials. Licences exclude separate dependency/blob terms. Boards, probes and fleet services are extra and not quoted.
When to pick which
| Constraint | Pick | Cost in complexity |
|---|---|---|
| ESP32 vendor drivers, power control, recoverable updates | Native ESP-IDF | RTOS, partitions, update policy |
| Arduino sensor libraries | Arduino, optionally PlatformIO | Library/chip compatibility, blocking calls |
| Multiple build targets and CLI tools | PlatformIO plus explicit framework | Independent platform/framework pins |
| Interactive Python REPL | MicroPython | Port modules, allocation and timing |
| USB file editing, Adafruit libraries | CircuitPython | Board support; different Python APIs |
| Rust team, async tasks | esp-hal with matching async integration; embassy-rp for Pico | Toolchain/features, radio/driver compatibility |
| Pico C/C++, PIO, peripheral control | Pico SDK | Cross-compilation and update design |
These are editorial recommendations, not measured rankings. Embassy is async code plus HALs for STM32, nRF, RP (ESP32: esp-rs). esp-hal is bare-metal; Rust ESP-IDF bindings are a different route.
Build, flash and debug feedback
| Route | Feedback/tools to establish before delegating |
|---|---|
| ESP-IDF | idf.py build, flash and monitor; OpenOCD/GDB over JTAG, subject to board interface |
| PlatformIO | Pin board, platform and framework separately; select upload protocol and a supported debug tool |
| MicroPython | mpremote for serial REPL/filesystem automation; desktop Python imports are not generally available |
| CircuitPython | USB/network workflows depend on board support; APIs differ from MicroPython |
| Pico SDK | ELF for debugging, UF2 for drag-and-drop; select the board and SWD probe/OpenOCD setup |
| Rust | espflash for ESP serial flashing; a supported probe workflow is a separate debugging choice |
Compiler diagnostics help agents iterate on text. Use bounded serial captures; a serial monitor is not a breakpoint debugger. No universal probe compatibility or tool versions are claimed here.
OTA is a product decision
- ESP-IDF's OTA guide requires two application slots plus OTA metadata. Enable rollback and validate after boot; design transport and image authentication separately.
- Arduino's OTA Web Update is an upload example. PlatformIO's OTA upload protocol needs firmware already implementing it, not just a build setting.
- MicroPython's ESP32 download page offers an OTA-support build. Python file updates and interpreter replacement need different recovery plans.
- CircuitPython network file editing is not proof of firmware rollback. A plain Pico needs an added network path for wireless updates.
- embassy-boot supplies Rust boot/update building blocks; delivery, layout and power-loss recovery remain application work.
What people using agents report
- hestela_dev's M5Dial report describes agent-assisted NTP firmware. “if you provide schematics” captures needed context; measured USB power behavior still needed bench verification.
- Định Nguyễn's ClauBlink shares Arduino/PlatformIO firmware across ESP32-C3 and RP2040. An HTTP “200 OK” hid a parser mismatch and inactive LED. Observable hardware behavior mattered.
Recommendation by constraint
Start hobby ESP32 work with Arduino when libraries fit; choose native ESP-IDF for vendor features and product recovery. Use Python for interactive experiments after checking timing. On Pico choose SDK for C/C++ control, MicroPython for REPL work, or Embassy for a Rust-skilled team. Build feedback helps agents; bench evidence establishes function.
A prompt to give your agent
For this exact board, wiring, timing/power budget and OTA need, compare supported stacks using official examples. Report toolchain, framework and library versions separately. Build one sensor read with bounded logs; document flash/debug and bench checks. Use schematics rather than guessing pins. Separate host-testable parsing from drivers. Distinguish file updates from firmware replacement and test interrupted-update recovery on a spare board.
Mistakes to check
- Mixing Arduino and ESP-IDF major APIs, or MicroPython and CircuitPython imports.
- Treating ESP32 variants, Pico and wireless Pico boards as interchangeable pin/radio targets.
- Calling a compiler pass a hardware test, or inferring timing/power correctness from an emulator.
- Giving an agent only source code while withholding wiring, board definitions and observed logs.
Limits
No builds, flashes, bench tests or OTA failures were exercised. Evidence is two maker reports; comparative Rust/Python agent results and engagement counts are absent. Embassy versions are manifest snapshots. Sources checked 2026-10-20. Staging was unreachable; the named corpus index had no embedded matches. Full pending dedupe was outside the filesystem scope.
Started from a post by @hestela_dev, packaged by the editor. Original post