Crates.io | nucleo-f446re |
lib.rs | nucleo-f446re |
version | 0.1.0 |
source | src |
created_at | 2022-07-17 04:30:50.942697 |
updated_at | 2022-07-17 04:30:50.942697 |
description | Board Support Package crate for the Nucleo-F446RE board |
homepage | |
repository | https://github.com/schteve/nucleo-f446re |
max_upload_size | |
id | 627089 |
size | 44,853 |
A Board Support Package (BSP) for the Nucleo F446RE development board. This board has a few basic features as well as breakout headers for daughter boards such as Arduino shields. It is a starting point to evaluate or develop basic applications for the STM32F446 product line.
This crate intends to be a beginner-friendly way to use this Nucleo board. It handles linker configuration, board initialization, and provides access to implementations of the board's features without needing to directly use a HAL. It may also be helpful as an example for learning embedded Rust with the STM32F446. For advanced applications you likely want to use the stm32f4xx-hal crate directly.
Note: this crate doesn't select the build target for your application. You can do this by copying the .cargo/config.toml
in this library, or by setting the target on each build e.g. cargo run --target thumbv7em-none-eabi
.
There are two main ways to make use of this BSP:
Many examples are provided to illustrate both ways of using the BSP, which can be found in the examples
directory. Use a USB cable to connect the Nucleo board's debugger to the host computer, and then run an example with cargo:
cargo run --example blinky
Here, cargo run
implicitly makes use of probe-run to flash, execute, and handle panic and backtrace info. You only have to install probe-run with cargo install probe-run
to use this. If you prefer GDB and OpenOCD, you can change the behavior of cargo run
by editing .cargo/config.toml
(basic scripts for GDB and OpenOCD are provided).
Licensed under either of
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.