4 ms·
fyi since you seem to be interested in this: rust has a few options including the embedded_hal crate with impls for everything from various microcontrollers to
by ComputerGuru 3y ago
fyi since you seem to be interested in this: rust has a few options including the embedded_hal crate with impls for everything from various microcontrollers to desktop linux.
https://docs.rs/embedded-hal/latest/embedded_hal/ https://docs.rs/embedded-hal/latest/embedded_hal/
- the__alchemist 3y agoSounds great in theory (writing MCU-agnostic libraries for peripherals), but I've found it unusable in practice due to the clunky API and incompatibility with DMA, interrupt-based-flow, least-common-denominator functionality etc. The new direction that library and related is Async with Embassy, which... is also not something I want to use.
- KallDrexx 3y agoDespite my day job involving rust, I struggled pretty hard getting Rust working adequately for my little GPU project on both pi pico and an esp32s3. Both had debugg-ability issues, missing features that would have required advanced FFI integrations to be added, and things just wouldn't even work. I spent a week on it making no progress, and with only an hour an evening I had to do anything it was frustrating. I then spent 2 days brushing up on C and got things up and running with ESP-IDF painlessly. I've been iterating really fast on C just fine, and the few times I wish I had Rust's features have been eclipsed by the advanced ESP-IDF api's I've needed to use that didn't have support in the Rust HALs.
- ComputerGuru 3y agoMy experience wasn’t stellar but it wasn’t like yours. There’s of course no comparison between the speed of getting up and running with the official sdk and toolchain, but it wasn’t so miserable.