/stm32f3discovery-test

A test makefile project of stm32f3discovery. This project contains LED flashing sample source, makefile, linker script, gdb script and openocd script.

Primary LanguageCGNU General Public License v3.0GPL-3.0

stm32f3discovery-test

A test makefile project of stm32f3discovery. This project contains LED flashing sample code, serial communication sample code, makefile, linker script, gdb script and openocd script.

This project is written in C++ language and tested with "GNU Tools for ARM Embedded Processors" toolchain. Included source codes have dependencies on libstdc++_s and boost library.

More simple version project (written in C language) is now available at here

Build and Debug Steps

  1. Build project
make
  1. Run OpenOCD
cd openocd
sudo ./openocd.sh
  1. Debug
make debug

Additional Informations

gdb/gdb.script : gdb debugger script which includes flashing commands

ld/STM32F303VC_FLASH.ld : linker script which is optimized for stm32f303 mpu

openocd/openocd.sh : script which runs OpenOCD (needs root permission) openocd/stm32f3discovery.cfg : OpenOCD configuration file for STM32F3Discovery