这个是江科大 B 站 STM32 入门课程代码的 Rust 实现,课程链接:STM32 入门教程
mise install rust@stable
# A decoding library for the ARM Cortex-M ITM/DWT packet protocol
cargo install itm
brew install arm-none-eabi-gdb
brew install minicom openocd
cargo install cargo-binutils
rustup component add llvm-tools
rustup target install thumbv7m-none-eabi
cargo binstall probe-rs-tools
Install tools from Rust Code Template Recommendation
cargo run --example 3-1-led