This is a simple project template for the STM32 Discovery, an evaluation board with the STM32F100RB microcontroller (128 KB Flash, 8 KB RAM).
This repository is based on jeremyherbert/stm32-template.
- GCC based ARM Toolchain, i.e. Sourcery CodeBench Lite Edition or summon-arm-toolchain
- STM32 Discovery programmer tool, i.e. texane/stlink
- Put all your source files
*.c
intosrc/
- Put all your header files
*.h
intoinc/
- Add the name of every source file with its name and the
.o
extension to theOBJS=…
line in theMakefile
- To compile your project and generate the corresponding
.bin
firmware, runmake
. - Run
make flash
to write the generated.bin
file to the STM32 flash memory. make gdb-server
andmake gdb-client
can be used to invoke the debugger service and client.