RC RANDOM CHAOS

esp32sim Brings Full ESP32 Emulation to the Browser

· via Hacker News

Original source

Show HN: Esp32sim – Run ESP32 firmware in the browser

Hacker News →

esp32sim is an instruction-level emulator for four Espressif ESP32 SoC variants spanning Xtensa and RISC-V architectures. Unlike most emulators, it boots and executes unmodified application firmware through the real mask ROM and bootloader—no compatibility stubs or patches. The implementation models sufficient hardware (GPIO, timers, cryptographic engines, wireless MACs, display controllers, image sensors) to run complete projects end-to-end in a browser via WebAssembly, with no cloud backend.

The architecture employs a modular design where peripheral models are shared across SoC variants when hardware is identical. Each CPU variant includes a decoder and interpreter; the S3 also features a JIT compiler. Verification against physical hardware shows console output matching silicon line-for-line across multiple boot cycles, with execution running approximately 30 times faster than real-time.

Demo projects run unmodified ESP-IDF firmware including embedded Linux on the S3, a SID synthesizer, and neural network inference using hardware SIMD units. The MIT-licensed project is entirely browser-accessible without installation.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.