- Install Rust with
rustup
- default nightly cargo install xargo
cargo install cargo-edit
cargo install svd2rust
- Find and dowload SVD file (https://github.com/posborne/cmsis-svd)
- cargo new boardname
- cd boardname
svd2rust -i board.svd | tee src/lib.rs
(Many boards seem too large for rustfmt)cargo add bare-metal cortex-m vcell
cargo add cortex-m-rt --optional
- Append to Cargo.toml: [features] rt = ["cortex-m-rt"]
unset CARGO_INCREMENTAL
xargo build --target thumbv6m-none-eabi
Last active
August 3, 2017 02:28
-
-
Save voteblake/2c5c83b771a3335482ddabae4093403c to your computer and use it in GitHub Desktop.
Process of building a new board support package for #rust-embedded projects
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment