I am trying to get PlatformIO to compile stm32 HAL code generated by CubeMX. The following is my
platform = ststm32
board = nucleo_f103rb
build_flags = -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32F1xx\Include -IDrivers\STM32F1xx_HAL_Driver\Inc
However, when running
platformio run -v, I see that that these include paths have somehow become modified by platformio to be completely wrong:
I note the following similar issue:
In that case the solution was to avoid multi-line
build_flags, but here I still have everything on a single line.
I have tried tracing through the platformIO source code to work out where this change is being made, but I had no luck.