Skip to main content
Graduate II
April 15, 2025
Solved

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

  • April 15, 2025
  • 1 reply
  • 1238 views

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

 

 

 

    This topic has been closed for replies.
    Best answer by Ghofrane GSOURI

    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

     

     

    1 reply

    Technical Moderator
    April 15, 2025

    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

     

     

    RickoAuthor
    Graduate II
    April 15, 2025

    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

     

    Technical Moderator
    April 15, 2025

    Hello @Ricko 

    It's not a bug .

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

    THX

    Ghofrane