cancel
Showing results for 
Search instead for 
Did you mean: 

How to properly open projects with the extention?

MFran.14
Associate

Hello,

I followed all instructions and created new example project in CubeMX for CubeIDE. Then I used the vsCode extention to import an existing project with the .cproject file.

How should you now open the linked source files to be able to edit the files? Since the .cproject file is in the "STM32CubeIDE" Folder and the Src files are located in the "Src" folder it is not opened by by vsCode.

Are you suposed to change the projects folder structure, or is there an other way, to keep the structure as it is intended by STM?0693W00000aJKdUQAW.png

1 ACCEPTED SOLUTION

Accepted Solutions

Yes, that is what this looks like. CubeMX generates projects by default in a subfolder of the source. That is because it can often generate projects for multiple types of IDEs. When we convert to CMake though that leaves you with the situation where CMake can find the files, but they aren't visible in the file explorer because you are in a subfolder. The CMake side bar icon can get you visbility to all of the files based on the targets they accrue to. To have your project at the same level as the source so everything is visible in the file explorer use the option to generate project in root.

View solution in original post

2 REPLIES 2
Jais
Associate II

Maybe you got the problem described here with the STM32CubeIDE samples.

Yes, that is what this looks like. CubeMX generates projects by default in a subfolder of the source. That is because it can often generate projects for multiple types of IDEs. When we convert to CMake though that leaves you with the situation where CMake can find the files, but they aren't visible in the file explorer because you are in a subfolder. The CMake side bar icon can get you visbility to all of the files based on the targets they accrue to. To have your project at the same level as the source so everything is visible in the file explorer use the option to generate project in root.