Repository navigation
esp32sim 0.4.0
Two new chips, the ESP32-P4 and the ESP32-S31, each with a real board; esptool flashing through
the ROM; WiFi you can shape from the page; and a much broader classic ESP32. 80 pull requests
since 0.3.0.
Try it without installing anything: https://mikroverk.github.io/esp32sim/
ESP32-P4 (2 x RISC-V)
The first dual-core RISC-V chip here, booted from its own mask ROM through the real bootloader
(esp32sim-p4, or --chip p4).
- RV32F and compressed float with the P4's lazy-FPU traps, CLIC mode, hart IDs, reservations
through the bus, Zicntr (#271, #272) - Silicon rev < 3: hello_world on one and two cores (#273); rev ≥ 3 (what a stock
idf.py set-target esp32p4builds for) has its own model - The SD/MMC host with its IDMAC and an SD card (
--sd,--sd-rw) (#274) - The high-speed USB-OTG port as a device, with a USB host on the other end written in Rust
(--usb-host) (#275) - WiFi through a co-processor: an emulated ESP32-C6 on SDIO running the unmodified
ESP-Hosted slave, the two chips in lock-step in one process (--coproc) (#276) - Board: Waveshare ESP32-P4-WIFI6-Touch-LCD-3.5 (ST7796 over SPI and AXI-GDMA, FT5x06
touch, ES8311 audio), with the Scintilla synth as a page demo (#293) - esptool flashes it through the ROM's UART download mode (#348)
Status: draft.
ESP32-S31 and the ESP-Mosaico (2 x RISC-V)
The newest Espressif chip, running ESP-IDF v6.1 firmware (esp32sim-s31, or --chip s31).
Started by Zhu Zhe (#320) and continued in #354.
-
The RISC-V extensions IDF's newest toolchain emits: Zba, Zbb, Zbs, Zcb, Zcmp, the Xesploop
hardware loops and the PIE subset the factory firmware uses (#354) -
Board: Espressif ESP-Mosaico (
--board mosaico): the round CO5300 480x480 AMOLED over QSPI,
CST9220 touch, ES8311 audio and microphone, BMI270 and two BMM150, the BQ27220 gauge, SPI
NAND, the AI and Boot keys, the vibration motor through LEDC, and USB host/device (#354, #363) -
The board's factory firmware (ESP-Claw) runs to its home screen (#354)
-
WiFi: scan, WPA2 through the AES accelerator, DHCP and pings (#358); SHA in DMA mode (#359);
OTA updates erase and write flash as on the chip (#360) -
--imu-motion Nscripts tilt, flip and shake for the IMU and the magnetometers (#358, #363) -
In the browser: the
s31-mosaicodemo, an LVGL compass built through Espressif's
esp-mosaico-bsp (examples/mosaico-demo): the needle from the magnetometer, a ball rolling with
the accelerometer while the board is turned, touch, the keys and the motor — at about 70–90 % of
real time in Chrome -
--flash-mbworks on a bare S31 module at 1 to 16 MiB;--board mosaicodefaults to 16 MiB
Status: draft. Not modelled yet: LEDC fades. Not yet checked on the board: the motor pin's
pull-down and the IMU and magnetometer axis directions.
RISC-V speed
- Decoded basic blocks for every RISC-V chip: the Mosaico's factory firmware runs 2.96x faster
(#356, EX265 in docs/experiments.md)
esptool and flashing
- esptool flashes the S3, C3, C6 (#345) and P4 (#348) through the ROM's UART download mode, as on
a real board
WiFi, networking and Bluetooth from the page
- Several joinable virtual access points (
--wifirepeatable),--pcapcapture, and a live
Network panel on the page (#355) - Networks and BLE devices around the station, for scans:
--wifi-nearby(#270),
--ble-nearby(#286), and both set from the page (#351, #352) - The station's NAT carried through the page (#350), the NAT's host side behind a transport
trait (#318), inbound TCP with--hostfwd(#278), read-only flow counts (#288) - A virtual station that joins the guest's own access point:
--wifi-sta(classic ESP32, open
and WPA2-PSK, the supplicant's side of the four-way handshake, a DHCP lease from the guest) (#362) - The virtual BLE controller and its peer driven from the page (#343); LL Privacy and the
resolving list as an S3 controller answers them (#300); VHCI fixes for the classic ESP32
(#347, #353)
The classic ESP32
- Boards: ESP32-2432S028 "Cheap Yellow Display" (#339), Ulanzi TC001 pixel clock (#311,
on the page #333), AI-Thinker ESP32-CAM raw OV2640 capture (#243), the Schematik T-Display
demo (#241) - Optional 4 MiB quad PSRAM (#298), deep sleep with RTC-timer and EXT0 wake (#240, #336), RTC
FAST-memory CRC (#238), silicon revision v3.0 (#322), WiFi receive causes (#315), timer
interrupts (#314), IO_MUX function 0 as GPIO (#332)
More boards and peripherals
- M5Stack StopWatch (#253), Seeed Studio XIAO ESP32-C6 (#262)
- The octal SPI flash of the ESP32-S3-WROOM-2 and the octal PSRAM's MR2 (#232, #261)
- GP-SPI3 on the S3 (#266), GP-SPI DMA_INT_SET (#330), SPI1's reset command (#313), I2C slave
ACK (#282), the S3 receive DMA restart (#258), what esp-hal needs from SYSTIMER, the timer
groups and the S3 bus (#281), esp-hal SPI DMA on the C3 (#284) - C3: interrupt status registers (#308), MAC reset (#340); C6: interrupt status registers
(#256), the 802.15.4 ACK timeout (#342), the PHY calibration unstubbed (#260) - One WiFi MAC model for the S3 and C3 (#327); CCOUNT restarts on a CPU reset (#323); the timer
prescaler (#290) --adcand--adc-rawfor host ADC pads (#277); opt-in routed GPIO waveform drive (#259)
Docs and infrastructure
- A quick-start page, the mask ROM fetched by the page, and a dialog that keeps its files (#264)
- A security policy (#265) and a code style section in CONTRIBUTING (#267)
- The maintainer creates the release; the workflow attaches the assets (#257)
- ARM CI goldens and an architecture-review round (#326)
Install
Download the tarball for your platform below and verify it against
esp32sim-0.4.0-SHA256SUMS.txt. Each one holds esp32sim, esp32sim-c3, esp32sim-c6,
esp32sim-p4, esp32sim-s31, the quick start and CLI docs, tools/fetch-rom-elfs.sh, LICENSE
and README.md. The classic ESP32 runs through the main binary with --chip esp32.
The mask ROMs are not redistributed; tools/fetch-rom-elfs.sh DIR downloads them from
espressif/esp-rom-elfs and checks their SHA-256.
Thanks
@Xorlev for the ESP32-P4, its SD, USB and co-processor;
@zhuzhe1983 for starting the ESP32-S31;
@mfiumara and Schematik for the classic ESP32 work, the CAM, the
T-Display demo and many peripheral fixes; @jumperly for the NAT,
nearby networks and BLE from the page and the octal flash;
@aljamund, @mateuszsikora,
@igouss, @tolixx,
@retrocpugeek, @mvanhorn,
@abacon, @ldicocco,
@Kalrkloss, @aroraraunaq,
@henrychao521 and @oroppas.