- Copy the contents of the Template to a STM32L496ZG CubeMX project
- Run
./do-repo-setup.sh
from the project root - Open the project folder in vscode and start the devcontainer
- Build with CMake extension
- Flash with st-flash (vscode task)
- Debug with cortex-debug extension
- do-repo-setup.sh
- initialises git
- clones a required cmake repo
- adds '#include app.h' to Core/Src/main.c
- adds 'app();' to Core/Src/main.c
- clang-format is only applied to items within the app directory
- Devcontainer includes all required dependencies to build, flash and debug using VSCode or a docker/podman/distrobox container
- Thanks to patrislav1 for cubemx.cmake, a collection of lightweight CMake and Python scripts that can build STM32 CubeMX projects with CMake and set up VSCode for editing/building/debugging.