-
Notifications
You must be signed in to change notification settings - Fork 132
4.4 nightly Windows - Arduino incompatibility in expansion of double quotes from platform.txt #1369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm confused here. |
You are right, I missed to select the correct BluePill variant in Arduino. But this does not matter, so I corrected the above issue description. |
Thanks |
Thanks for the hint, I changed my workaround, to be more flexible 👍 . |
It should be fixed in the nightly (after next build). |
I just updated and the bug is not fixed. |
Thanks for testing. 🎈 So IMHO There should be a new nightly that contains the fix. |
Fixed now 👍 |
thanks for testing :-) |
The compiler flags from the platform.txt for the 2.0.0 version from https://github.com/stm32duino/BoardManagerFiles/raw/master/package_stmicroelectronics_index.json

are:
build.info.flags=-D{build.series} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DBOARD_NAME="{build.board}" -DVARIANT_H="{build.variant_h}"
and are converted in platform.sloeber.txt to:
build.info.flags=-D${build.series} -DARDUINO=${runtime.ide.version} -DARDUINO_${build.board} -DARDUINO_ARCH_${build.arch} "-DBOARD_NAME=\"${build.board}\"" -DVARIANT_H="${build.variant_h}"
This results in the commandline:
... -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLUEPILL_F103C8\"" -DVARIANT_H="variant_PILL_F103Cx.h" ...
But in Arduino the comandline is different:
... -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLUEPILL_F103C8\"" "-DVARIANT_H=\"variant_PILL_F103Cx.h\"" ...
The -DVARIANT_H="variant_PILL_F103Cx.h" does not work! It requires at least a -DVARIANT_H="variant_PILL_F103Cx.h" at the commandline.
Workaround is to add a compile option
-DVARIANT_H=\"variant_PILL_F103Cx.h\"
to override the defect value.The text was updated successfully, but these errors were encountered: