STM32 Programming with opencm3: Part 1
This repository contains the complete companion code and EAGLE design files to accompany this blog post which details setting up a USART, and redirecting printf to it.
You can also check out the previous post, which details the basics of compiling and flashing code.
In this repo:
main.cpp: The main example code with USART.
stm32f0.ld: Linker script for the
Makefile: Collection of rules to build and upload code to the MCU
.gdbinit: GDB resource file that automates conencting to an attached Black Magic Probe
libopencm3: Git submodule referencing our version of opencm3.