Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>STM32 VS Code ExtensionNew to Visual Studio Code? Get it now.

STM32 VS Code Extension

STMicroelectronics

st.com
|
3,413 installs
| (6) | Free
STM32 embedded development support added to Visual Studio Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

STM32 VS Code Extension

STM32 embedded development support added to Visual Studio Code.
A new STM32 VS Code Extension view container is added to the activity bar which contains lists of functionality that can be activated through a click.

How to use

Prerequisites

STM32CubeCLT is a toolset for third-party integrated development environment (IDE) providers, allowing the use of STMicroelectronics proprietary tools within their own IDE frameworks.
It is required for basic build and debug functionality.

  • STM32CubeCLT

For full functionality, three programs need to be installed on your computer:

  • STM32CubeMX
  • STMCUFinder
  • Git

Features

  • Create VS Code compatible projects from STM32Cube projects
  • Shortcut to create new application projects in STM32CubeMX
  • Cloning of STM32Cube firmware from GitHub
  • Resources containing shortcuts relevant for STM32 development
    • STM32 MCU Developer Zone
    • STM32 firmware on GitHub
    • STMCUFinder
    • ST Community forum
    • Give feedback

Create VS Code compatible projects from STM32Cube projects

This feature makes use of the extension "Embedded Tools" by Microsoft to create a VS Code compatible project from an STM32Cube project.
When clicked, a file selection window is opened up where a cproject file can be selected to import the project.

Shortcut to create new application projects in STM32CubeMX

Opens STM32CubeMX if it is installed on your computer.
When opened up a new application project can be created.

Cloning of STM32Cube firmware from GitHub

Allows selecting firmware for an STM32 device to be downloaded and used in the project or used for source code referencing.

STM32 MCU Developer Zone

A web page dedicated to STM32 developers describing all key ecosystem elements of STM32 and STM32Cube.

STM32 firmware on GitHub

This is where STM32 firmware can be browsed for download or source code referencing.

STMCUFinder

Opens STMCUFinder if it is installed on your computer.
This allows you to browse through the available ST MCUs to find the ones suitable for your projects.

ST Community forum

A place where you can get support from other developers and ST employees, as well as contribute your own knowledge to help others.

Give feedback

This is where you can provide your feedback about this extension that you want us to hear.

Troubleshooting

When starting the debugger it can happen the connection to the board fails with a Visual Studio Code message reporting "Unable to start debugging. No process is associated with this object."
The root cause can be identified in the DEBUG CONSOLE. Most probably the following message is reported: "Error in initializing ST-LINK device. Reason: ST-LINK firmware upgrade required."

To overcome the issue please install and run STM32CubeProg to upgrade the ST-LINK firmware as required.

License

Open in browser

Get started

Watch the video to get started.

Watch the video

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft