Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
img
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 STM32F070CB MCU
  • 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.

Pictures

Console output with formatted timestamp Timestamped console output

About

Sample code for USART + printf on STM32F070

Resources

Releases

No releases published

Packages

No packages published