cancel
Showing results for 
Search instead for 
Did you mean: 

How do I import existing CubeIDE project into VS Code (which uses CMake)?

Ricko
Senior III

Hi,

I have a CubeIDE project and I want to continue development using VS Code.

How do you convert an existing project to CMake so I can use it in VS Code?

In CubeMX I opened the .IOC file to try to change the project settings to CMake but the Toolchain drop down menu is greyed out so I cannot change it. How do I change it to CMake specifically to be used with VS Code?

Thank you

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @Ricko 

First let me thank you for posting.

Let's try this workaround :

After opening your IOC using STM32CubeMX , go to File --> Save project as --> select where to save the new IOC and change the name of the IOC then click save.

After doing this , try to change the toolchain to Cmake.

I 'will be waiting for your feedback.

THX

Ghofrane

 

 

View solution in original post

4 REPLIES 4
Ghofrane GSOURI
ST Employee

Hello @Ricko 

First let me thank you for posting.

Let's try this workaround :

After opening your IOC using STM32CubeMX , go to File --> Save project as --> select where to save the new IOC and change the name of the IOC then click save.

After doing this , try to change the toolchain to Cmake.

I 'will be waiting for your feedback.

THX

Ghofrane

 

 

Thank you @Ghofrane GSOURI 

it looks like it I can do that from standalone STM32CubeMX but not from the CubeMX inside CubeIDE's CubeMX Extension/Plugin. Inside the CubeIDE's CubeMX-plugin it shows greyed out as you can see from the attached screenshot.

 

It does that for all projects, so it is a CubeIDE bug I assume?

Where do you report bugs?

Thank you

 

Ricko_0-1744722895586.png

 

Hello @Ricko 

It's not a bug .

the CubeMX plugin within CubeIDE is meant to generate projects for STM32CubeIDE only.

THX

Ghofrane

Thank you @Ghofrane GSOURI