Skip to content

louisreg/STM32-vscode-template

Repository files navigation

STM32-vscode-template

A template for STM32 development with vscode

Resources

Pre-requirements

Setting up the environment

  1. Setting up debug config
    • Set absolute paths in .vscode/settings.json. Paths can be found using "which xxx" in terminal.

Creating a new STM32 project

  1. Create a new CubeMX project
    • Select the target MCU
    • Config clocks and peripherals as needed
    • In "Project Manager":
      • In "Project" select "Toolchain / IDE: Makefile"
      • In "Code Generator" tick "Copy only the necessary library files"
      • In "Advanced Settings" select "LL" instead of "HAL" in Driver Selector

Tips and Tricks

  • Format document (clang-format) in vscode: right-click -> Format Document

Useful C/C++ libs

  • Boost::ext: a lite State Machine Language Library

TODO

  • Get device header files
  • Get device svd file (for debug)
  • script for automatic project mcu update
  • update CMAKE
  • update c_cpp_properties

About

A template for STM32 development with vscode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages