This is a template to use the STM32F0xx with GCC and Makefiles.
It currently only runs on linux, and flashes programs with the JLink Segger programmer over SWD.
To use this code:
-
Download the STM Standard Peripheral Library for the STMF0xx. Place it in a persistent location.
-
Download and install the JLink tools for your platform. Make sure that the binaries are added to your path.
-
Edit the application Makefile to specify:
- your specfic STM32F0xx device
- the location of the Standard Peripheral Library
- the location of the makefile template above (if not cloned recursively)
- any source files that you use
-
Use the supported commands to program and debug the chip:
make
: Compilemake flash
: Program the chipmake debug
: Run gdbmake erase-all
: Full erase of the chipmake startdebug