cancel
Showing results for 
Search instead for 
Did you mean: 

Can't build on VSCode

hasansyr
Associate

Hello, I have opened someone else's STM32 project in VSCode but I'm getting errors and I can't build. I think it has something to do with CMake, the extension is not asking me to generate a CMAKE config. Do I have to genereate a new project from IDE/MX to work with CMAKE or can I generate the CMAKE files in the exisiting project?

 

Also, it seems that the extension wants you to disable clangd or cpp intellisense extensions because they conflict with the extension's intellisense, is there a way to enable the extention intellisense only for STM32 projects?

Thanks in advance

hasansyr_0-1753450249011.png

 

5 REPLIES 5
Cartu38 OpenDev
Lead II

If you prefer Microsoft C/C++ extension code indexing just disable or unsinstall STM32Cube one

Cartu38OpenDev_0-1753454672090.png

STM32Cube is adding indexing directives for both conributors Microsoft & clangd ... so you have choice !

Cartu38 OpenDev
Lead II

"someone else's STM32 project in VSCode" processed Thanks STM32Cube already (sign of is / do you get at project root a .settings\ide.store.json) ? 

Any trace / log / snapshot more to share about build issue ?

There is no build error because I didn't build, there is no build icon maybe because of the missing CMAKE config

I know I can disable the extensions, my question was if I can use the STM32 one only for STM32 projects since it seems best.