Board support crate for the STM32F3DISCOVERY
$ # if you don't have the clone subcommand $ cargo install cargo-clone $ cargo clone f3 --vers 0.5.1 # on another terminal $ openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg # flash and debug the "Hello, world" example $ cd f3 $ xargo run --example hello
You'll need to have both OpenOCD and arm-none-eabi-ld installed.
See the examples module.
On-board user LEDs
On board L3GD20 connected to the SPI1 bus via the pins PA5, PA6, PA7 and PE3
On board LSM303DLHC connected to the I2C1 bus via the PB6 and PB7 pins