breadboard
docs

Example project · Start here

ESP32-S31 ESP-IDF hello

The stock ESP-IDF v6.1.1 hello_world runs on both emulated cores of the preview board. Open Serial to watch the countdown and guest restart. The board models the CoreBoard J2 header. Radios and physical flashing are unavailable.

The ESP32-S31 ESP-IDF hello circuit as rendered by the simulator

How it works

This bench runs the ESP32-S31 as a development preview. The board is the ESP32-S31-Function-CoreBoard-1, modelled pin for pin on its J2 header, with two HP RISC-V cores. The firmware is the stock ESP-IDF v6.1.1 hello_world example, built without changes: core 0 starts after a modelled ROM and bootloader handoff, and core 1 runs the real ROM launch code.

hello_world prints Hello world! and a short report on the chip and its free heap, then counts down from 10 to 0, one line per second. At the end it calls esp_restart(), so the chip resets and the whole program runs again from the top. Wi-Fi, Bluetooth, 802.15.4, Ethernet, PSRAM and the board's audio parts are not simulated, and the board cannot be flashed physically from here.

What to watch

Open Serial. After the boot log you see Hello world!, then Restarting in 10 seconds... with one line per second down to 0, then Restarting now. and the same sequence again. The board's RST button holds the chip in reset while pressed and reboots it on release. BOOT holds GPIO61 low, but the ROM download mode it would select on real hardware is not modelled.

What's on the bench

  • ESP32-S31-Function-CoreBoard-1

This project runs prebuilt firmware on the emulated board; open it in the simulator to watch it work and inspect every part live.

Try this

  • Press RST in the middle of the countdown. The count stops, and when you release the button the boot log and the countdown start again from 10.
  • Unplug the USB cable in the Inspector and power the board through J2 instead: wire a 5 V battery to a J2 5V pin and a G pin. The same image boots on either supply.
  • Open the S31 servo, encoder or OLED example next. They run unmodified ESP-IDF v6.1.1 programs on the same chip, using MCPWM, PCNT and I2C respectively.

Related projects