This is my first post and the first project on platformIO. I have created the STM32 project with the CMSIS framework but I am getting include file not found upon compiling it. I have tried this on an example project as well. I know this is a basic setup configuration, but I would be grateful if someone could suggest. I have attached a screenshot.
You are building your code the wrong way, as I can see by that raw gcc command which tries to generate a binary for your desktop computer, not the for the microcontroller.
You must use the build button in the taskbar or the project task “build” to build the firmware. Not any other method, like clicking on the play button to the right of the filename.
It should be found in a similar place on Windows. Sorry, I don’t use Windows so I can’t point you straight at it.
However, see the reply above from @maxgerhardt for the reason your compiler is not finding it. I can also recreate your exact error by running my Linux gcc compiler against the source in main.c.
main.cpp:1:10: fatal error: stm32f4xx.h: No such file or directory
1 | #include <stm32f4xx.h>
| ^~~~~~~~~~~~~
compilation terminated.