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

Download history 82/week @ 2024-07-22 70/week @ 2024-07-29 69/week @ 2024-08-05 137/week @ 2024-08-12 57/week @ 2024-08-19 59/week @ 2024-08-26 59/week @ 2024-09-02 62/week @ 2024-09-09 69/week @ 2024-09-16 89/week @ 2024-09-23 69/week @ 2024-09-30 19/week @ 2024-10-07 49/week @ 2024-10-14 52/week @ 2024-10-21 72/week @ 2024-10-28 56/week @ 2024-11-04

230 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