Skip to main content
Senior
Apr 15, 2025 1:40 AM UTC
Solved

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

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

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
Apr 16, 2025 1:18 AM UTC

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

 

4 replies

Pavel A.
Apr 15, 2025 10:51 AM UTC

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
Apr 15, 2025 1:10 PM UTC

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
Apr 16, 2025 1:18 AM UTC

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