A Rust "Hello, World!" for the STM32F411CEUx.
Generated using cortex-m-quickstart
:
$ cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart
To build you'll need a cross-compilation toolchain supporting the thumbv7em-none-eabihf
target. To install it using rustup
, run:
$ rustup target add thumbv7em-none-eabihf
To build:
$ cargo build --release
To flash:
$ cargo flash --chip stm32f411CEUx --release
In order to use the cargo-flash
command, it must have been previously installed. To install it, run:
$ cargo install cargo-flash
This code has been successfully tested on the following board: