Skip to main content
Visitor
September 28, 2026
Question

STM32CubeIDE migration to VSCode problem

  • September 28, 2026
  • 1 reply
  • 14 views

We have a project which uses STM32CubeIDE (Eclipsed-based). It has a Makefile which we use to compile the code and upload the code to the target. Since I know ST has made a new STM32CubeIDE VSCode extension, I wanted to have a trial to see if I can convert the existing Eclipsed based project to VSCode based project. I installed the STM32CubeIDE extension in VSCode and other necessary components. I followed the migration guide to generate a CMake project using STM32CubeMX. However, it never worked since the new CMake file doesn’t take what the original Makefile does in my project. It missed a lot of compiler and scripting options. After the migration, the build process failed and never succeeds. Since Makefile works great in the original project (either in CLI/GUI mode), why does the migration require user to convert it to CMake? Many Unix/Linux users prefer Make instead of cmake. It gives you better control over the source code. I would suggest ST that if you really want to make a VSCode extension for ST developers, you should support Makefile as the default toolchain, not cmake.

1 reply

Cartu38 OpenDev
Graduate II
September 28, 2026

​@zd29086 
Which migration guide are you speaking about ? Could you share link to I’ve some interest.

Such said, myself I’ve success converting Eclipse based project to CMake Thanks STM32CubeIDE for Visual Studio Code dedicated feature:
 

Have you got a try ?