Skip to content

A template for building firmware for STM32F3Discovery boards

Notifications You must be signed in to change notification settings

mborko/stm32f3-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template project for the STM32F3Discovery Board

This is a template repository for getting the main peripherals working on a STM32F3Discovery board.

Toolchain

To get all dependencies and be ready to flash the STM32F3 Board, install the following packages on your distribution:

Debian based

apt install cmake libusb-dev libusb-1.0-0-dev build-essential autoconf \
cutecom git binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi

apt install rpm pkg-config debhelper # for flash-tool build process

Arch based

pacman -S cmake libusb libusb-compat autoconf git arm-none-eabi-binutils \
arm-none-eabi-gcc arm-none-eabi-gdb arm-none-eabi-newlib

Flash-Tool

The newest Flash-Tool for the STM-Boards can be found at STLINK. Clone it and make a debian package, which then can be installed via dpkg:

git clone https://github.com/texane/stlink
cd stlink 
make clean
make package
sudo dpkg -i build/Release/dist/stlink_1.6.1-96-gbf41f14-1_amd64.deb
sudo ldconfig # refresh library list for st-link

Additional Resources

Clone the STM32Cube-F3 Library to the ~/opt Folder or any other destination. Check the STM32_PATH Definition in the Makefile and change it aproperly.

STM32F303VC Product Page
STM32F303xC Datasheet
STM32F3 Family Reference Manual
Cortex-M4 Technical Reference Manual

Credits

Thanks to Fabian Greif for his minimal example repository for the STM32F3-Discovery board. I wish also to thank Matthew Blythe and 'mohammedari' for theier good startpoints:
Basic Template
Test Makefile

About

A template for building firmware for STM32F3Discovery boards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages