install rust from here
Please use everything as default especially in Windows.
use winget install git in windows
Since we have private dependencies, we need to login to use git from system. Add following to ~/.cargo/config:
[net]
git-fetch-with-cli = trueMake sure you have valid ssh keys in your system and git account.
Type rustup default nightly in command window
Type rustup target add thumbv8m.main-none-eabihf in command window
cargo build --features "stm32u575ci"You should replace stm32u575ci with your target chip.
Currently we only support very few chips.
You need probe-rs to flash and run the code. Install it with:
cargo install cargo-binstall
cargo binstall probe-rsOr you can install with `cargo binstall probe-rs"
Refer to probe-rs for more information.
Then we can flash and run with:
cargo run --features "stm32u575ci"