-
A mini application to demonstrate embedded development using Rust. Created using a
NUCLEO-F446RE development board
. Blinks an LED on pinPA5
. -
The application uses Visual Studio as IDE to build source files and flash the board.
-
The repository provides a compressed cargo package located in
rust_stm32f446re_blinky\toolchain\cargo\bin.7z
. Unpack the cargo package before building the application.
- Visual Studio
- After unpacking the zip folder (bin.7z), open a CMD window and run the following commands
- rustup default stable
- rustup target add thumbv7em-none-eabihf
- cargo install cargo-embed cargo-binutils
- Open the solution
rust_stm32f446re_blinky.sln
in the./rust_stm32f446re_blinky directory
. - Select the
stm32f446re_blinky_build
configuration. - Then rebuild the entire solution.
- connect the NUCLEO-F446RE board to your pc
- Select the
stm32f446re_blinky_flash
configuration. - Then rebuild the entire solution.
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- rustup target add thumbv7em-none-eabihf
- cargo install cargo-embed cargo-binutils
- cargo build
- cargo embed
Testing and continuous integration runs on GitHub Actions.
An additional quality check rustfmt is performed on a pull request and merge to master.