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

#1975 in Embedded development

Download history 56/week @ 2023-12-06 62/week @ 2023-12-13 75/week @ 2023-12-20 40/week @ 2023-12-27 49/week @ 2024-01-03 86/week @ 2024-01-10 65/week @ 2024-01-17 49/week @ 2024-01-24 31/week @ 2024-01-31 68/week @ 2024-02-07 97/week @ 2024-02-14 215/week @ 2024-02-21 89/week @ 2024-02-28 95/week @ 2024-03-06 92/week @ 2024-03-13 85/week @ 2024-03-20

376 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