/stm32-template

Template project for stm32vl-discovery devices

Primary LanguageC

stm32-template

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.

Prerequisites

Installation

  1. Put all your source files *.c into src/
  2. Put all your header files *.h into inc/
  3. Add the name of every source file with its name and the .o extension to the OBJS=… line in the Makefile

Usage

  • To compile your project and generate the corresponding .bin firmware, run make.
  • Run make flash to write the generated .bin file to the STM32 flash memory.
  • make gdb-server and make gdb-client can be used to invoke the debugger service and client.