2025-05-22 10:09 PM
I installed the STM32Cube for Visual Studio Code extension, after which I downloaded STM32CubeMX, STMCUFinder and STM32CubeCLT_1.18.0 and linked them to the extension as seen below:
I then opened STM32CubeMX, opened a project using the board NUCLEO-F746ZG, generated the code. The path of the project is: C:\Users\Public\VSCode_Projects\STM32\STM32_Testing
Here are the files in the folder:
In VS code, I click on "Import CMake Project" and I click on Import project option in the screenshot below
However, after that, the project does not open, and in the bottom bar VS code says "Importing project". The bar has been displaying that message for 2 hours now, yet a project hasn't opened.
May I know what I could be doing wrong? Thanks!
Solved! Go to Solution.
2025-05-22 10:53 PM
https://www.youtube.com/watch?v=aWMni01XGeI sounds helpful too
2025-05-22 10:30 PM
Have you got a chance to try brand new released solution (pre-released takes care you have to push right button to install it) ?
No more "Import" to be done ... just add STM32CubeMX generated projet to your VSCode workspace and at a time just answer "yes" to this notification kind which is happening following Cmake project discovery by CMake tools extension
Sounds @AlanCui4080 has got some good first experience with see https://community.st.com/t5/stm32cube-for-visual-studio-code/why-this-extension-do-not-use-environment-variables/td-p/800975
Same here @3subzero3 https://community.st.com/t5/stm32cube-for-visual-studio-code/stm32-vs-code-extension-no-compiler-found-in-cache-file/td-p/584026/page/3
2025-05-22 10:53 PM
https://www.youtube.com/watch?v=aWMni01XGeI sounds helpful too
2025-05-22 11:16 PM
Thanks for the help! The video was super helpful
2025-05-28 8:59 AM
Hi , I installed the new release and works fine , except I do not get the message
"Would you like to configure discovered CMake projects as ST32MCube" projects?
I have STM32Cube for Visual Studio Code v 3.4.11 and is set on pre-release version
Can you help ?
2025-05-28 10:44 AM
4'55" --> https://www.youtube.com/watch?v=aWMni01XGeI
Sounds notification text updated but you have to accept here. This is allowing to convert a CMake project to a STM32Cube project. Extensions are adding couple of metadata live.
2025-05-28 11:36 AM
and if you do not get this notification or if you may miss it at a point you can call process back Thanks:
2025-05-28 11:56 PM
@Cartu38 OpenDev Thanks for hepling ...
I found out :
After I installed VS Code the projects were saved in a folder:
"C:\Users\MyUserName\VS\STM32\"
I found out that all these issues comming when I was looking to move the projects on my D:\ drive
I actually create new projects on new location but I still have the issue ( on the D:\ Drive location )
So if I create a project on D:\ drive I get bellow issues in VS Code:
1. I do not have the option "SetupSTM32Cube projects
2. Stm32Cube Bundles Manager seem to search something but never finds ( blue bar slides continuously ... )
Also in STM32Cube Deveices and Boards there's also a continuously search for hardware
So it seems the issue is related to project path ...
Thanks
2025-06-02 2:12 AM
Hi, I would still like to have my projects ( workspace ) on the location I use for all projects I am working ...
Could you please help why in other locations these VS Code projects are not working - as explained in previous message...
Thanks,
2025-06-02 5:31 AM
Works like a charm based on G:\ disk on my side while VSCode install is on my primary drive C:\
Windows 11