stm32-template
A template for building applications for STM32 microcontrollers
To build embedded programs using this template you'll need:
cargo generate
subcommand. Installation
instructions.$ cargo install cargo-generate
$ cargo install probe-rs --features cli
rust-std
components (pre-compiled core
crate) for the ARM Cortex-M
targets. Run:$ rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf
$ cargo generate --git https://github.com/burrbull/stm32-template/
Project Name: app
Specify chip product name and answer on several other guide questions.
Your program is ready to compile:
$ cargo build --release
You can flash your firmware using one of those tools:
cargo flash --release
— just flashcargo run --release
— flash and run using probe-rs run
runner or probe-run
runner (deprecated) which you can set in .cargo/config.toml
cargo embed --release
— multifunctional tool for flash and debugYou also can debug your firmware on device from VS Code with probe-rs extention or with probe-rs gdb
command.
You will need SVD specification for your chip for this. You can load patched SVD files here.
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.
Contribution to this crate is organized under the terms of the Rust Code of Conduct, the maintainer of this crate, promises to intervene to uphold that code of conduct.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。