I need to produce a project for STM32F411RE that does not use the ST HAL BSP. It just needs to have the startup code and vectors. Is there an easy way to do this?
Normally, you can just remove the reference to “STM32 HAL” via the Embedded Frameworks page. This should leave the startup code, vectors and the linker script (you would need to change the main source file).
The remaining issue is that Intellisense is still looking in the BSP for header files. The compiler does not and it follows the include file directories I have entered, however Intellisense does not. If I right click on an include file line to open that file the IDE opens the file in the BSP.
How can I force Intellisense to reparse my project?
The answer depends whether you are using GNU Make or MSBuild. Normally VisualGDB should update the include paths automatically. Perhaps they have been removed and then re-discovered by the automatic header discovery feature?
MS IntelliSense does not support automatic header discovery, so it could be indeed related. You can also try disabling the header discovery via the IntelliSense Settings page of VisualGDB Project Properties.