2025-01-31 01:44 AM
Hello, Can someone advise me for a "blueprint" how to set up C++ in VS Code for stm32 mcu, I've changed Cmakelists.txt to be able to compile C++ and I am not getting an error at Cmakelists.txt, but I am still getting errors from undefined macros. I sense that it is related to IntelliSense and I've set all include paths in properties.json and stil it doesn't recognize some macros from different libraries. I just wanted to ask you if you know certain procedure for any type of project involving setting up C++ for STM32 in VS code.
Thanks in advance
2025-01-31 08:30 AM
2025-02-01 06:25 AM
Hi, yes exactly, I figured it out, those were errors from missing libraries. I thought that CubeMX has generated them. From Intellisense.
And the rest of errors was that I had to incorporate also the ST-Link server file location in properties.json and also location of gcc, but the gcc from CubeCLT location. And also the gcc location to Cmakelists.txt-s,
Many thanks,
2025-02-01 06:26 AM
I mean the errors were from intellisense, it couldn't locate them.