Closed maxgerhardt closed 2 years ago
Somehow this piece of code
https://github.com/platformio/builder-framework-arduino-core-mbed/blob/ed9a3458e336660fdf2b1d4a4c828a2ddfd214ad/arduino-core-mbed.py#L50-L76
generates in the .vscode/c_cpp_properties.json
.vscode/c_cpp_properties.json
"defines": [ "PLATFORMIO=60003", "ARDUINO_PORTENTA_H7_M7", [...] "ARDUINO_ARCH_MBED", "-DCM4_BINARY_START=0x08100000", "" ],
The -D should not be there. VSCode doesn't like that at all
-D
Using platformio.ini
platformio.ini
[env:portenta_h7_m7] platform = ststm32 board = portenta_h7_m7 framework = arduino
Is this the latest dev platform? I can't reproduce this issue.
Indeed, this problem goes away when using platform = https://github.com/platformio/platform-ststm32.git.
platform = https://github.com/platformio/platform-ststm32.git
Somehow this piece of code
https://github.com/platformio/builder-framework-arduino-core-mbed/blob/ed9a3458e336660fdf2b1d4a4c828a2ddfd214ad/arduino-core-mbed.py#L50-L76
generates in the
.vscode/c_cpp_properties.json
The
-D
should not be there. VSCode doesn't like that at allUsing
platformio.ini