Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.02 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.02 KB

stm32f4-thrift

An example that uses thrift-nano to read/write messages over usb on an STM32F4.

Based on USB CDC code I found here: http://vedder.se/2012/07/usb-serial-on-stm32f4/

Building

This project uses the stm32-cmake toolchain to build.

  1. Clone the toolchain repo

git clone https://github.com/ObKo/stm32-cmake.git

  1. Follow the toolchain repo instructions carefully for building and installing for your board
  2. Follow the toolchain repo usage instructions to build one of the provided example projects (like stm32-blinky)

The same instructions used to build the example project may be used to build this project.

Installing

You may use your favorite tool to flash. I like to use stlink by texane which you may get from the pacman repo if you're running arch linux. If you have st-link, just do:

st-flash --reset write stm32-thrift.bin 0x8000000