r/esp32 • u/Fearless-Comb5250 • 7h ago
Advertisement esp32sim 0.4.0: open-source ESP32 emulator now runs the ESP32-P4 and the new ESP32-S31 (ESP-Mosaico), also in the browser
esp32sim is an open-source emulator for Espressif chips. It boots unmodified ESP-IDF firmware images through the chips' own mask ROMs, with boards around them: displays, touch, sensors, audio, WiFi. It runs on the command line (macOS and Linux) or in a browser tab.
What's new in 0.4.0:
- ESP32-P4: both RISC-V cores, SD card, USB-OTG, and WiFi through an emulated ESP32-C6 co-processor running the unmodified ESP-Hosted firmware. Board: Waveshare ESP32-P4 LCD-3.5.
- ESP32-S31 on Espressif's ESP-Mosaico: the round 480x480 AMOLED, touch, IMU and magnetometers, audio, the vibration motor and WiFi. The board's factory firmware runs to its home screen.
- esptool flashes the S3, C3, C6 and P4 through the ROM's download mode, as on a real board.
- WiFi: several virtual access points, pcap capture, and a live network panel on the web page.
- Speed: RISC-V code runs about 3x faster.
- More classic ESP32 boards: the Cheap Yellow Display, the Ulanzi TC001 pixel clock and the ESP32-CAM.
Try the Mosaico compass demo (and the others) in your browser, nothing to install: https://mikroverk.github.io/esp32sim/
Release notes and downloads: https://github.com/mikroverk/esp32sim/releases/tag/v0.4.0 Source: https://github.com/mikroverk/esp32sim
The P4 and S31 support is still marked draft. 80 pull requests went into this release, many from contributors. Bug reports and firmware that doesn't run are very welcome as issues.