Skip to content

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

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

Closed
3 tasks done
fpistm opened this issue Feb 22, 2023 · 1 comment
Closed
3 tasks done

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

fpistm opened this issue Feb 22, 2023 · 1 comment
Assignees
Labels
conclusion: resolved Issue was resolved topic: debugger Related to the integrated debugger type: enhancement Proposed improvement

Comments

@fpistm
Copy link

fpistm commented Feb 22, 2023

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
@fpistm fpistm added the type: enhancement Proposed improvement label Feb 22, 2023
@kittaakos kittaakos added the topic: debugger Related to the integrated debugger label Feb 22, 2023
@fpistm fpistm changed the title [debug]: {build.openocdscript} should support multiple files [debug]: debug.server.openocd.script should support multiple files Feb 22, 2023
@per1234 per1234 changed the title [debug]: debug.server.openocd.script should support multiple files debug.server.openocd.script should support multiple files Feb 22, 2023
@kittaakos kittaakos self-assigned this Mar 22, 2023
@kittaakos
Copy link
Contributor

It should be possible with arduino/arduino-cli@748fcf6 and Arduino IDE 2.3.0.

Please use the debug.server.openocd.scripts.N directive. Reference the OpenOCD server specific configurations section from the platform specification: https://arduino.github.io/arduino-cli/latest/platform-specification/#debugger-configuration-directives for more details.

I am closing as resolved. If you disagree or notice any bugs, please update this issue, and maintainers will reopen if needed. Thanks

@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: debugger Related to the integrated debugger type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants