← back to projects
systems project

aerostream-async

language: Rust · no_stdhardware: RISC-V ESP32-C3/C6 · QEMU virtstatus: Active development

motivation

I wanted to understand bare-metal RISC-V — how trap handling differs from ARM, how the privilege levels work, what a RISC-V bare-metal startup looks like in Rust. Targeting ESP32-C3 (which has real hardware I can test on) and QEMU virt (for CI) let me develop and validate without hardware-only iteration loops.

what it does

An event-driven telemetry and DSP pipeline under strict no_std constraints. Bare-metal RISC-V with an async event loop driving signal acquisition, digital filtering, and telemetry output — no OS, no heap, no blocking.

technical detail

The interesting constraint is no_std async on RISC-V: Embassy's executor works in no_std mode, but you have to implement the timer interrupt and wakeup mechanism yourself for the target. On ESP32-C3 this means implementing the RISC-V timer CSR interrupt handler and teaching the executor when to sleep. On QEMU virt it uses a simpler polling fallback for CI.

technology used

Rust
RISC-V (RV32IMC)
Embassy executor
ESP32-C3/C6 HAL
no_std async/await
QEMU riscv32 virt
DSP (FIR filtering)
Telemetry framing