STM32 for VSCodeAn extension to compile, debug, and flash STM32 projects. This extension is built to work in conjunction with STM32CubeMX, and will install the required toolchain when desired. It will automatically startup when it finds a CubeMX file or an STM32 for VSCode configuration file. This extension also supports using cpp files; however, NOTE: Your CubeMX project needs to be generated as a makefile project under "Project Manager -> Project -> Toolchain/IDE". PrerequisitesThere are a few command line tools that need to be installed for this extension to work. You can either add them manually or let the extension automatically install them for you. This option will be shown on start-up. Automatic installation
Configuring CubeMXThis extension assumes the project is initialized with CubeMX and the option to create a Makefile project under "Project Manager -> Project -> Toolchain/IDE". Also, please leave the default on "Copy all used libraries into the project folder" when creating the new project. How to UseClick on the ST icon and select the command you want to run. Once this is done for the first time, you can also use the shortcut Features
Build ProcessThe build process uses the information of the CubeMX makefile and the ConfigurationThe recommended way of configuring the build (i.e., adding flags, adding files/directories) is by means of the ImportingSTM32CubeIDE and ST provided example projects can now be imported by using the: "import CubeIDEProject" command. Do note that the project folder should be open in the workspace. DisclaimerThis an extension created because I wanted a fast way to build, flash and debug STM32 on OSX in VSCode. This extension is used internally at Bureau Moeilijke Dingen for development. As this might be helpful to others, I have allocated time to publish this extension. Should you find any bugs or have feature requests, please open an issue in the GitHub repository. |