Template to develop bare metal Rust applications for the STM32F3DISCOVERY board. Utilizes the stm32f3-discovery board support crate.
To build embedded programs using this template you'll need:
- Rust 1.31 or a newer toolchain.
- The
cargo generate
subcommand. Installation instructions. rust-std
components (pre-compiledcore
crate) for the ARM Cortex-M target.
$ cargo install cargo-generate
$ rustup target add thumbv7em-none-eabihf
NOTE: This is the very short version that only covers building programs. For the long version, which additionally covers flashing, running and debugging programs, check the embedded Rust book and the Discover book.
$ cargo generate --git https://github.com/rubberduck203/stm32f3-discovery-quickstart
Project Name: app
Creating project called `app`...
Done! New project created /tmp/app
$ cd app
$ cargo build
For examples, see the examples directory of the stm32f3-discovery repository.
This template includes launch configurations for debugging CortexM programs with Visual Studio Code located in the .vscode/
directory.
See .vscode/README.md for more information.
If you're not using VS Code, you can safely delete the directory from the generated project.
This template is licensed under either of
- Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
This project is based on and forked from the cortex-m-quickstart project.