单片机
stm32f103c8 最小系统
通过PC13 口点亮led灯
环境准备
-
安装STlink v2驱动 网上搜关键字下载
-
安装cargo-flash
cargo install cargo-flash
-
安装 thumbv7m-none-eabi
rustup target install thumbv7m-none-eabi
代码
https://github.com/noxue/stm32-rust-led
编译并下载到单片机
cargo flash --chip=STM32F103C8 --release
参考资料
https://jonathanklimt.de/electronics/programming/embedded-rust/rust-STM32F103-blink/
https://doc.rust-lang.org/stable/embedded-book/intro/index.html