12 unstable releases (5 breaking)
Uses old Rust 2015
0.6.1 | Jun 22, 2018 |
---|---|
0.5.3 | Feb 19, 2018 |
0.4.1 | May 9, 2017 |
0.3.0 | Nov 14, 2016 |
#2080 in Embedded development
230 downloads per month
Used in serialio
51KB
448 lines
f3
Board Support Crate for the STM32F3DISCOVERY
Documentation
Change log
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
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.
lib.rs
:
Board support crate for the STM32F3DISCOVERY
Usage
- Trying out the examples
$ # if you don't have the clone subcommand
$ cargo install cargo-clone
$ cargo clone f3 --vers 0.6.0
# on another terminal
$ openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
# flash and debug the "Hello, world" example
$ cd f3
$ rustup target add thumbv7em-none-eabihf
$ cargo run --example hello
You'll need to have both OpenOCD and arm-none-eabi-gcc installed.
- Building an application that depends on this crate
To build applications (binary crates) using this crate follow cortex-m-quickstart instructions and add this crate as a dependency in step number 6 and make sure you enable the "rt" Cargo feature of this crate. Also, instead of step number 4 remove both the build.rs and memory.x files.
Examples
See the examples module.
Dependencies
~8.5MB
~316K SLoC