Software › Mini-REPL (UART0)

Mini-REPL (UART0)

demo Open · freely redistributable

An original public-domain (CC0) bare-metal program, compiled from freestanding C to a flat ESP32-C6 RV32IMAC image. It brings up UART0, prints a banner and an esp32> prompt, runs a line editor (echo + backspace) and a left-to-right integer expression evaluator over + - * (the RV32M mul drives multiply). Type print(2+2) to get 4, 6*7 to get 42, led red / led green / led blue / led off to set the on-board WS2812 RGB LED (GPIO8), or help. Real RISC-V machine code on the real memory map, so every instruction single-steps in the debugger.

Download ↓ Original source ↗

Format: Raw ESP32-C6 flash image (RV32IMAC), base64  ·  By: emulators.org  ·  Licence: Public domain (CC0)

Runs on