2023-03-20 06:25 AM
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?
Solved! Go to Solution.
2023-03-23 04:43 PM
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.
2023-03-20 09:54 AM
Maybe you got the problem described here with the STM32CubeIDE samples.
2023-03-23 04:43 PM
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.