cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to import project on visual studio code

is45
Visitor

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:

is45_0-1747976636332.png

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:

is45_1-1747976743021.png

In VS code, I click on "Import CMake Project" and I click on Import project option in the screenshot below

is45_2-1747976830827.png

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. 

is45_3-1747976914787.png

May I know what I could be doing wrong? Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
Cartu38 OpenDev
Lead II

Have you got a chance to try brand new released solution (pre-released takes care you have to push right button to install it) ? 

See https://community.st.com/t5/stm32cube-for-visual-studio-code/new-stm32cube-for-visual-studio-code-extenstion-released-3-4-11/td-p/800040
Cartu38OpenDev_0-1747977882478.png

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

Cartu38OpenDev_1-1747978200667.png

 

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

 

Cartu38 OpenDev
Lead II
is45
Visitor

Thanks for the help! The video was super helpful