2023-08-03 08:14 AM - edited 2023-08-26 02:33 AM
Hi team.
I’m using VSCode with STM32 VSCode extension.
And I want to know, how to generate st-project.cmake when add new .c and .h files automatically?
Is there any way?
Solved! Go to Solution.
2023-11-28 02:19 PM
Found a way to regenerate the st-project.cmake based on https://community.st.com/t5/other-tools-mcus/including-external-header-files-in-project/m-p/54039/highlight/true#M15
To regenerate he CMake files:
1) Open STM32 VS CODE EXTENSION in a side bar or F1 + "Import a local STM32Cube project"
2) Select .cproject file again
This will scan project folders and add ALL source files into the project.
Two issues with this:
1) ALL source files added to the project and you can't hide or exclude.
2) The path for include files is not added.
2023-11-28 01:19 PM
I am searching for the same answer. Have you found solution?
2023-11-28 02:19 PM
Found a way to regenerate the st-project.cmake based on https://community.st.com/t5/other-tools-mcus/including-external-header-files-in-project/m-p/54039/highlight/true#M15
To regenerate he CMake files:
1) Open STM32 VS CODE EXTENSION in a side bar or F1 + "Import a local STM32Cube project"
2) Select .cproject file again
This will scan project folders and add ALL source files into the project.
Two issues with this:
1) ALL source files added to the project and you can't hide or exclude.
2) The path for include files is not added.
2023-11-28 05:15 PM
Hi ZDima-san
I was able to solve my problem in this way.
Thank you!