Use Rust in Arduino

I believe that we can use Rust in Arduino, but how do we set this up?

1 Like

Arduino is based on AVR, and AVR support in Rust is a work in progress:

https://github.com/rust-lang/rust/issues/44052

5 Likes

Cool can't wait to use Rust with Arduino one day.

You could propable use the Arduino Due which is based on a arm cortex M3

Can you code in Rust and is Rust stable enough to be used on Aurduinos?

Yes :slight_smile: https://crates.io/crates/sam3x8e

4 Likes

Would this also be compatable with a Rasbbery Pi or the Odroid without changing the code?

How do I upload an executable to the Due?

1 Like

You could do that with a openocd /gdb or something similar. Take a look at Hardware - The Embedded Rust Book, as MCU the due is equipped with a Atmel SAM3X8E ARM Cortex-M3.

1 Like