{build.variant} recipe is not expanded properly for debug #1960
Labels
topic: code
Related to content of the project itself
topic: debugger
Related to the integrated debugger
type: imperfection
Perceived defect in any part of project
Describe the problem
We are currently trying to add the debug support for STM32 in Arduino IDE 2.x.
We added the following to platform.txt
An openocd.cfg file was added in each variant directory and a the boards.txt looks like this
With the above configuration, if we run a compilation for Nucleo F030R8, it works as expected, but if we try to debug we have the following message:
As we can see, the {build.variant} is not properly expanded to our STM32F030 but to a STM32C0 which is the first to appear in the boards.txt after the declaration of the
build.openocdscript
To reproduce
Use code from stm32duino/Arduino_Core_STM32#1976 and try debugging a Nucleo that is not the first in its category.
Expected behavior
{build.variant} should be expanded with the correct value so that we could debug.
Arduino IDE version
2.0.4
Operating system
Windows
Operating system version
10
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: