Skip to content

debug.server.openocd.script should support multiple files #1906

@fpistm

Description

@fpistm

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

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions