3 ms·
This is a very timely article, since I’ve been trying to figure out how to get Embassy to work on any of the various ESP32 boards I have this weekend. Is there
by coder543 3y ago
This is a very timely article, since I’ve been trying to figure out how to get Embassy to work on any of the various ESP32 boards I have this weekend.
Is there any good guide for getting Rust working on ESP32? (the old Xtensa dual core model, or the newer C3 or C6 models)
I’ve also been looking at maybe trying an RP2040 board I have, but the Getting Started[0] guide seems very incomplete. It doesn’t even seem to mention that you need a nightly build of Rust, but I’m pretty sure you do.
I also doubt that running “cargo run” is going to result in an example being loaded onto any development board, so that seems like a confusing thing to show in the guide.
[0]: https://embassy.dev/book/dev/getting_started.html https://embassy.dev/book/dev/getting_started.html
- JoshMcguigan 3y ago“cargo run” does in fact flash the dev board. Cargo allows configuring a custom runner, which is what the embassy examples do [0]. [0]: https://github.com/embassy-rs/embassy/blob/main/examples/stm32f4/.cargo/config.toml#L3 https://github.com/embassy-rs/embassy/blob/main/examples/stm...
- coder543 3y agoAh, neat. That is a cool feature I didn’t know cargo had!
- captaincrisp 3y agoFor ESP chips in general, the Rust on ESP Book [0] is pretty solid. Little short. I've been playing with writing a Watchy firmware in Rust (Watchy uses the dual-Xtensa ESP32-PICO-D4), and this was a great starting point. [0] https://esp-rs.github.io/book/installation/index.html https://esp-rs.github.io/book/installation/index.html
- coder543 3y agoI’ll definitely take a look!