This is a cmake project template for using the STM32-base project with a STM32F4 series device based on STM32-base project.
- ARM GNU toolchain (
arm-none-eabi-*) installed. - CMake (3.30+).
- Ninja (recommended generator), or use CLion.
Edit cmake/ArmToolchain.cmake and set:
set(ARM_DIR "put the ARM toolchain path here(folder before bin)")Edit cmake/Device.cmake if needed:
set(DEVICE STM32F401xE)From project root:
cmake -S . -B build -G Ninja
cmake --build buildAfter a successful build, outputs are in build/:
stm32-template.elfstm32-template.hexstm32-template.binstm32-template.map