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/
This project uses the stm32-cmake toolchain to build.
- Clone the toolchain repo
git clone https://github.com/ObKo/stm32-cmake.git
- Follow the toolchain repo instructions carefully for building and installing for your board
- 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.
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