Getting Started With Embedded Development Using Rust and Arduino
Channel: Makeitnow
Date: 2022-05-26

My blog on the same topic: https://dev.to/rajeshpachaikani/getting-started-with-embedded-development-using-rust-and-arduino-2idb


#1. Run this to install avr compiler and header files
sudo apt install avr-libc gcc-avr pkg-config avrdude
#2. We need cargo generate to create a project from a template
cargo install cargo-generate
#3. Also to run the program once you compiled it you can use the ravedude cargo package
cargo install ravedude
#4. Generate a project
cargo generate --git https://github.com/Rahix/avr-hal-template.git
#5. Cargo build
cargo build
#6. Set your serial com port
export RAVEDUDE_PORT=/dev/ttyUSB0
#7. Cargo run
cargo run


Take a look at my website:
https://makeitnow.in

Twitter: https://twitter.com/rajesh_pa_