This is a basic development setup for the microcontroller STM32L011F4 with CMake.
This project was targeted for macOS X platform though other platforms should not be hard to add.
Minimal version is 3.12. If you have any problems with it - upgrade your CMake already it's 2020.
The toolchain provided by ArmMbed. I'll be using this formulae for homebrew https://github.com/ARMmbed/homebrew-formulae
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
The debugging probe and programmer - STLINK-V3
For interacting with tool I will be using OpenOCD instead of their IDE and tools that repel me.
Instead of IDE I will be using VSCode because it is a simple, versatile, and reliable tool.
I will be using a couple of extensions for the IDE:
- CMake Tools for building
- Cortex-Debug for debugging
- C/C++ for C language support
Huge thanks to geokon for his article on the topic Bluepill: a GCC/CMake build environment .. that really helped me get this going.