Skip to content

Platformio not setting board define flag #1385

Closed Answered by maxgerhardt
Deadeye5589 asked this question in Q&A
Discussion options

You must be logged in to vote

Then that is indeed a bug since that's missing in

CPPDEFINES=[
("ARDUINO", 10810),
"ARDUINO_ARCH_RP2040",
("F_CPU", "$BOARD_F_CPU"),
("BOARD_NAME", '\\"%s\\"' % env.subst("$BOARD")),
"ARM_MATH_CM0_FAMILY",
"ARM_MATH_CM0_PLUS",
],

But does it compile with with when you use build_flags = -DTARGET_RP2040 in the platformio.ini? All changes to the c_cpp_properties.json will be ignored. Only the platformio.ini matters.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@maxgerhardt
Comment options

@Deadeye5589
Comment options

@maxgerhardt
Comment options

Answer selected by Deadeye5589
@Deadeye5589
Comment options

@maxgerhardt
Comment options

@Deadeye5589
Comment options

@maxgerhardt
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants