4 ms·
Anyone using Rust on ESP32? I'm 24 hours into trying and it's dredging up memories of old cross-compile toolchain problems, like trying to compile dependencies
by Steltek 5y ago
Anyone using Rust on ESP32? I'm 24 hours into trying and it's dredging up memories of old cross-compile toolchain problems, like trying to compile dependencies as x86 :). Either way, it's a fun project so far so I'm not complaining. Embedded seems like a great fit for Rust for ensuring correctness and speed.
- remcob 5y agoLLVM (Rusts' backend) doesn't support the Xtensa instruction set, which makes this so complicated. The newer ESP32-C{3,6} instead use a RISC-V instruction set which is already supported by Rust, so its much easier to set up. So far I managed to get basic serial coms working, but am waiting for some HAL so I can build a blinky LED.
- skrap 5y agoIf you haven't yet, check out Scott Mabin's blog. He's working on ESP32 & Rust: https://mabez.dev/blog/posts/esp-rust-18-10-2021/ https://mabez.dev/blog/posts/esp-rust-18-10-2021/
- elcritch 5y agoNo, I started using Nim on esp32's due to the Rust/llvm toolchain issue and found it quite nice. I wrapped much of the esp-idf in a project called Nesper. Though I keep an eye on Rust in the embedded world. Rust type system does seem to require a lot more work creating shared hardware api's.