Skip to main content
Senior
April 15, 2025
Solved

Start a new STM32 project in VS Code using an existing .IOC file OR copy .IOC data/settings

  • April 15, 2025
  • 1 reply
  • 1225 views

Hi,

how do I start a new project in VS Code (using ST's STM32 extension or other ways) from an existing .IOC file?

I am asking because for writing new code for some new PCBs, I have the .IOC file which I configured when I made the PCBs and I want to reuse because it has many settings that I don't want to copy manually.

 

Alternatively, is there a way to import an existing .IOC file data/settings into a new .IOC file (obviously making sure they both use the same micro part number).

 

Thank you

Best answer by Pavel A.

AFAIK, only the standalone CubeMX can generate projects for CMake. This is a feature, not bug ))

 

1 reply

Pavel A.
Super User
April 15, 2025

Hi,

Right now I've opened a .ioc file from a project generated for EWARM, changed the toolchain to Cmake and re-generated the project. It worked. Please provide more details.

 

RickoAuthor
Senior
April 15, 2025

Thank you @Pavel A. 

it looks like it does allow me to do that (change to CMake) if I open it from standalone CubeMX but not from the CubeMX inside CubeIDE. 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-1744722188366.png

 

Pavel A.
Pavel A.Best answer
Super User
April 16, 2025

AFAIK, only the standalone CubeMX can generate projects for CMake. This is a feature, not bug ))