This repository contains set of "Hello World" (which is usually led blinking in the embedded world) examples for Cortex-M microcontrollers using the Arm GNU Toolchain. It's aim is to demonstrate how to use the CM-Makefile template in custom projects.
Although the repository contains pre-configured examples for a few particular MCUs and board, the CM-Makefile can be easily used with other boards or other vendors' SDKs as well.
To compile the project, simply run make
in its source directory. To flash the
compiled binary to the target MCU, run make flash
:
cd stm32-cube
make
make flash
The complete usage is described in CM-Makefile's README
file. Moreover,
all examples have their own README
with target-specific information (e.g. how
to obtain required libraries).
The base repository also contains installation instructions for the cross-compilation toolchain.
CM-Makefile is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
See COPYING
and COPYING.LESSER
for details.