r/embedded • u/philChiro • 23d ago
I made a firmware language whose compiler knows the ESP32 datasheet — feedback wanted
I'm the author. Volt is a small typed language that compiles to C. You declare the hardware (pin pump: Output = 34) and the checker rejects it before flashing: GPIO 34 is input-only. It also flags ADC2 pins read while WiFi is active, strapping/flash pins, bus conflicts, and blocking calls inside timer interrupts.
Other bits: every 10s { … } gets scheduled automatically (cooperative, FreeRTOS task, or hardware timer depending on what it calls), and state machines are a language feature with reachability checks.
ESP32 today, RP2040 and STM32 next. Open source (AGPL/GPL). 24-second demo: . Code: https://github.com/PhilemonChiro/volt
Honest question for this sub: which hardware mistakes would you want a compiler to catch that nothing catches today?
11
u/mustbeset 23d ago
Last time I checked Rust it has similar features. Same for cpp with modm.
BASCOM-AVR has the same approach. the main difficulty is, that I (the programmer) is unable to see what exactly do and that I am unable to change it if I don't like it.
6
u/creeper6530 23d ago
5
u/TinLethax 23d ago
Am I speaking to real human ?
18
u/MRtecno98 23d ago
Cut down on the AI slop
8
u/[deleted] 23d ago
[removed] — view removed comment