stm32-rs / stm32-usbd-examples

stm32-usbd examples for different microcontrollers
48 stars 19 forks source link

Build Status

stm32-usbd-examples

A collection of examples for stm32-usbd.

Cloning the repository

git clone --recursive https://github.com/stm32-rs/stm32-usbd-examples
cd stm32-usbd-examples

Supported targets

STM32F103C8 (Blue Pill board)

rustup target add thumbv7m-none-eabi
cd example-stm32f103c8
openocd -f openocd.cfg &
cargo run --release

STM32F303VC (STM32F3DISCOVERY board)

rustup target add thumbv7em-none-eabihf
cd example-stm32f303vc
openocd -f openocd.cfg &
cargo run --release

STM32F042K6 (NUCLEO-F042K6 board)

rustup target add thumbv6m-none-eabi
cd example-stm32f042k6
openocd -f openocd.cfg &
cargo run --release

STM32F072RB (32F072BDISCOVERY board)

rustup target add thumbv6m-none-eabi
cd example-stm32f072rb
openocd -f openocd.cfg &
cargo run --release

STM32L432KC (NUCLEO-L432KC board)

rustup target add thumbv7em-none-eabihf
cd example-stm32l432kc
openocd -f openocd.cfg &
cargo run --release