Using Rust to turn on an LED on the NUCLEO-F446RE by pressing a button
This example is mainly copied from the great Rust Embedded Cortex-M Quickstart and Jesse Braham's article Embedded Rust: From Zero to Blinky and tweaked for the STM32F446RE of the NUCLEO-F446RE board.
prerequisites: rust, opencd (optional), probe-run
rustup target add thumbv7em-none-eabihf
git clone https://github.com/krenzlin/rust-stm32f446-blinky
cd rust-stm32f466-blinky
cargo build <--release>
cargo run
orsudo ./flash_device.sh target/thumbv7em-none-eabihf/debug/blinky
- press the blue user button to turn on the LED
Troubleshooting:
- try updating:
rustup update