Platformio not setting board define flag #1385
-
Hello, I'm trying to switch from the Arduino IDE to VSC and have been doing so for the past few hours. Crawaling from failure to failure. I have tried both variants of the core declarations from the platformio wiki article:
and
always with the same result of not being abel to compile. Now I'm asking you, if you have an idea why this flag is not set in VSC and how I can resvole this issue? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Ok it seems that I have advanced a step Still unable to compile. Now running into an error: expected type-specifier before 'Arduino_RPiPicoSPI' |
Beta Was this translation helpful? Give feedback.
-
Max created a PR to fix the missing build flag |
Beta Was this translation helpful? Give feedback.
Then that is indeed a bug since that's missing in
arduino-pico/tools/platformio-build.py
Lines 122 to 129 in 4f643d2
But does it compile with with when you use
build_flags = -DTARGET_RP2040
in theplatformio.ini
? All changes to the c_cpp_properties.json will be ignored. Only theplatformio.ini
matters.