- Install Rust.
- Install the compilation target for your MCU. Eg run
rustup target add riscv32imc-unknown-none-elf
. rustup toolchain install nightly --component rust-src
- Connect your device using JTAG USB. Run
cargo run --release
to compile and flash. (Shortcut:cargo rr
)