cancel
Showing results for 
Search instead for 
Did you mean: 

VSCode for STM32 extension 1.0.0 released

Nawres GHARBI
ST Employee

VSCode for STM32 extension 1.0.0 is available now

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.

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.

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

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.

Where to get get it

available on the VS Code Extension Marketplace

https://marketplace.visualstudio.com/items?itemName=stmicroelectronics.stm32-vscode-extension

32 REPLIES 32
ola
Associate III

I can debug successfully with STM32CubeIDE as indicated in my first post. The reason I am trying to use VS Code is out of preference. I also believe that the source code navigation facility is more intuitive compared to Eclipse based IDE.

And lastly I use VS code for other embedded projects and it think it would be good if I can use the same IDE without not losing any functionality for ditching STM32CubeIDE.

ola
Associate III

When I load STM32CubeIDE .cproject in VSCode the only source files that are shown are files in Core/syscalls.c, Core/sysmem.c and Startup/startup_stm32wl55jcix.s 

The project builds successfully when imported and I can even start debug but I can not see main.c. If I load the same project in STM32CubeIDE all the files show correctly. 

I have tried re-installing Visual Code and STM32 VS CODE EXTENSION

Any idea on what is happening.

ola_0-1701773676814.png

 

ola
Associate III

To add some more information to the above bug report. This bug is only visible when I use the example project from the Example Selector option that STM32CubeMX presents. The example project that I was trying to load was the SubGHz_Phy_Per project.

However if I start using the Board Selector option then the project created load correctly in VS code.