STM32 template project
targets supported:
-
wifi: EMW3165 STM32F411 based WiFi module
-
f4disco: STM32F4-Discovery
-
f3disco: STM32F3-Discovery
-
tiny: various STM32F103 based modules from eBay
-
f105: STM32F105 based module from 36board
To compile and rund this code you need the following:
- Toolchain
Download and unzip the toolchain from:
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
Add the PATH to the compile to your PATH variable, e.g.
export PATH=$PATH:/opt/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/bin/
- OpenOCD
To flash the SW to the CPU/module you need to install openOCD and make sure it's in the PATH. you need an STLINK or compatible SWD debugger, edit stm32fx.cfg to switch from v2.1 to v.2.
- Building
To build, simply type (replace
TARGET=$target$ make
which will build the project in the build_$target$/ folder
To program the board, use
TARGET=$target$ make p (or TARGET=$target$ make program)