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

#2016 in Embedded development

Download history 33/week @ 2024-01-01 86/week @ 2024-01-08 71/week @ 2024-01-15 54/week @ 2024-01-22 34/week @ 2024-01-29 65/week @ 2024-02-05 78/week @ 2024-02-12 207/week @ 2024-02-19 103/week @ 2024-02-26 93/week @ 2024-03-04 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

424 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
~315K SLoC