An example repository of using CMake with the arm-none-eabi-gcc compiler for an Arm Cortex M4 processor.
Install the required tools, make sure they are in the system path
This repository includes submodules. When cloning, use the --recursive
flag.
git clone --recursive https://github.com/ryanwinter/cmake-arm-cortex-m
cmake --preset debug
cmake --build --preset debug
cmake --preset release
cmake --build --preset release
cmake --preset debug-iar
cmake --build --preset debug-iar
cmake --preset release-iar
cmake --build --preset release-iar
The repository includes the necessary assets to build, flash and debug the application in VSCode using the Embeeded Tools extension
- Install VSCode
- Open the project folder in VSCode
- Press
F5
to build, flash and run the project
This repository includes source from the following 3rd parties.