ESP32

The esp32 port is built on ESP-IDF. One tree covers classic ESP32 plus S2, S3, C3, C5, C6 and P4. Flash with esptool. Docs: esp32 quickref.

Boards

Flash

esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash
esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 ESP32_GENERIC-*.bin
Addresses and chip names change for S3/C3 — use the download page for the image you picked.

Images: ESP32_GENERIC and the sibling ESP32_GENERIC_* boards. Hold BOOT (GPIO 0) if the serial port does not enter download mode.

What you get

Wi-Fi via network.WLAN, BLE on chips that have it, espnow, deep sleep, touch pads on classic/S2/S3, and a larger heap than ESP8266. C3 and C6 are RISC-V; P4 is a high-performance host that can pair with a C5/C6 radio (from 1.27).

Playgrounds

ESP32-C3 and ESP32-C6 on emulators.org.