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

#2117 in Embedded development

Download history 86/week @ 2024-03-11 107/week @ 2024-03-18 98/week @ 2024-03-25 117/week @ 2024-04-01 74/week @ 2024-04-08 123/week @ 2024-04-15 111/week @ 2024-04-22 89/week @ 2024-04-29 85/week @ 2024-05-06 94/week @ 2024-05-13 88/week @ 2024-05-20 84/week @ 2024-05-27 82/week @ 2024-06-03 77/week @ 2024-06-10 86/week @ 2024-06-17 89/week @ 2024-06-24

348 downloads per month
Used in serialio

MIT/Apache

51KB
448 lines

Build status crates.io crates.io

f3

Board Support Crate for the STM32F3DISCOVERY

Documentation

Change log

License

Licensed under either of

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