A template for building STM32F0 ARM projects with GCC
FreeSTM32F0 Discovery GCC template for command-line builds
About A template for building STM32F0 ARM projects with GCC
This GitHub repository provides a basic template for building STM32F0 Discovery board projects using the GNU Compiler Collection (GCC) toolchain, specifically arm-none-eabi-gcc. It is designed for developers who prefer working in a text editor and command-line environment over using an Integrated Development Environment (IDE). The template includes a Makefile structure that automates the building of the STM32F0xx standard peripheral library, custom linker scripts (to avoid restrictive copyright from STM's default script), device-specific startup files, and support for flashing via OpenOCD. It is based on a similar template for the STM32F4 Discovery board and allows easy upgrades of the peripheral library by preserving its original folder structure. The repository contains subdirectories for libraries, source code, include files, and OpenOCD configuration.
Key Features
Pros & Cons
- Free and open source under standard GitHub terms
- Eliminates vendor IDE lock-in and allows use of any editor
- Easy to integrate peripheral library upgrades by copying over new STM releases
- Custom linker scripts avoid restrictive copyright issues present in STM's default
- OpenOCD flashing support enables simple programming with 'make program'
- Specifically targets STM32F05xx series (STM32F0 Discovery board) only
- Requires manual installation of arm-none-eabi-gcc toolchain and OpenOCD with stlink
- Not actively maintained (repository shows limited recent activity)
- Limited documentation beyond the README file