debug.server.openocd.script
should support multiple files
#1906
Labels
conclusion: resolved
Issue was resolved
topic: debugger
Related to the integrated debugger
type: enhancement
Proposed improvement
Describe the request
Currently
{debug.server.openocd.script}
is used to provide the openocd file configuration to load by expanding {build.openocdscript}example:
debug.server.openocd.script={build.openocdscript}
Nucleo_64.build.openocdscript=board/st_nucleo_f4.cfg
produces:
-f "board/st_nucleo_f4.cfg"
This board config will load the interface and target.
Anyway it should be useful to be able to provide the interface and the target if no board config available:
-f "interface/stlink.cfg" -f "target/stm32f4x.cfg"
which is supported by openocd.
Describe the current behavior
It is not possible to provide more than one configuration file.
Example if we defined 2 configurations files:
Nucleo_64.build.openocdscript=target/stm32f4x.cfg interface/stlink.cfg
it produces this arguments:
-f "target/stm32f4x.cfg interface/stlink.cfg"
while we expect:
-f "target/stm32f4x.cfg" -f "interface/stlink.cfg"
Arduino IDE version
2.0.3
Operating system
Windows, Linux, macOS
Operating system version
10, ubuntu 20.04, ventura
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: