2025-12-10 9:33 AM
I have recently started a project in VSC using an STM32 device. I first used STM32CubeMX to generate code, so that created most of the project. I am using CMAKE.
Initially there was no issue, and everything worked fine after disabling intellisense. However, I have now become plagued by the stubborn red squiggles which refuse to disappear whatever I do. I would prefer to continue using VSC, but will have to ditch it and move to another IDE if this problem does not go away, as I cannot work like this. Further down the file there are many other red squiggles. The project compiles fine, no issues there. An example of the problem:
No matter what I do, the first #include has red squiggles under it. If I change the order of the #includes, then it is always the first one which has the squiggles. settings.json file:
c_cpp_properties.json file:
Any help would be gratefully appreciated, please.