Skip to content

Teivaz/cmake-stm32

Repository files navigation

Basic CMake project for STM32

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.

Setup

CMake

Minimal version is 3.12. If you have any problems with it - upgrade your CMake already it's 2020.

Toolchain - arm-none-eabi-gcc

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

Hardware debugger - STLINK-V3

The debugging probe and programmer - STLINK-V3

Debugging - openocd

For interacting with tool I will be using OpenOCD instead of their IDE and tools that repel me.

IDE - Visual Studio Code

Instead of IDE I will be using VSCode because it is a simple, versatile, and reliable tool.

VSCode extensions

I will be using a couple of extensions for the IDE:

Credits

Huge thanks to geokon for his article on the topic Bluepill: a GCC/CMake build environment .. that really helped me get this going.

About

Basic CMake project for STM32

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published