VS Code is becoming the “go to” environment for many developers. Increasingly, toolchain providers are publishing VS Code extensions and ST has recently followed suit. Additionally, CMake is significantly growing in popularity, with many projects adopting it for its ease of use and flexibility. This video shows how the STM32 VS Code extension works under the hood and how to get more out of it.
Specifically, we’ll review the CMake files generated by the VS Code extension and how to modify them, notably how to add a flash task which can be called by VS Code and how to cater for C++ in addition to C.
The STM32 F0 project including the flash task and C++ modifications is available in the following GitHub repo.