-
-
Notifications
You must be signed in to change notification settings - Fork 443
{build.openocdscript}
recipe is not expanded properly
#1905
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
Which version of the CLI did you test? IDE2 is still using |
I've tested with the last available release 0.30.0. |
I've tested with arduino-cli version 0.29.0 and it is properly expanded: |
{build.openocdscript}
recipe is not expanded properly
Hi @kittaakos |
Describe the problem
Hi,
we currently experiment the debug support within the Arduino IDE 2.x for the STM32 core.
For this we will provide openocd thanks our package index json file, currently in dev branch:
https://github.com/stm32duino/BoardManagerFiles/blob/dev/package_stmicroelectronics_index.json#L584-L625
Then we have declared the debug part in the platform.txt:
Finally we have defined the
build.openocdscript
recipe in the boards.txt.As we have a lot of variant defined, we defined it at variant level:
Example for Nucleo_64 F411RE:
Unfortunately when we launch the debug, the
build.openocdscript
is not expanded:If we defined it at the root of the section it works:
Nucleo_64.build.openocdscript=board/st_nucleo_f4.cfg
I tested with arduino-cli debug and both definition works and
{build.openocdscript}
is porperly expanded. So only the IDE is impacted.I've also tested to define it at root to use an other recipe (variable) and it does not works with IDE while it works with arduino-cli.
One strange behavior if it seems some default recipe are expanded by the IDE but not correctly:
ex:
{build.variant}
debug.server.openocd.script={build.variant}/{build.openocdscript}
is expanded like this:
-f "STM32C0xx/C031C(4-6)(T-U)/{build.openocdscript}"
but the selected variant should be
STM32F4xx/F411R(C-E)T
To reproduce
define {build.openocdscript} in other way.
Expected behavior
Same behavior between arduino-cli and the IDE: {build.openocdscript} properly expanded.
Arduino IDE version
2.0.3
Operating system
Windows
Operating system version
10
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: