Skip to content

Support for Cortex-Debug svdfile available within a core #1920

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 27, 2023 · 1 comment
Closed
3 tasks done

Support for Cortex-Debug svdfile available within a core #1920

fpistm opened this issue Feb 27, 2023 · 1 comment
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: debugger Related to the integrated debugger type: enhancement Proposed improvement

Comments

@fpistm
Copy link

fpistm commented Feb 27, 2023

Describe the request

Hi,

Request is to be able to define the svd file to use for a variant without need to create manually a debug_custom.json and be able to use recipe to use relative path.
Example:
debug.server.cortex-debug.svd={runtime.platform.path}/system/SVD/{build.svdfile}

Maybe related to #435

We plan to add svd files to the core to ease debug.

Describe the current behavior

Currently, to get svd file added to the generated launch.json config file, it is required to add a debug_custom.json file with:

{
  "svdFile": "C:\\Users\\<username>\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0-dev\\system\\SVD\\STM32F411.svd"
}

but it requires to add it for each sketch and change it when board is changed.
Moreover it is not possible to use recipe in the json, so if the svd files are provided within the core it is not possible to use:
{build.system.path}/SVD/STM32F411.svd

Arduino IDE version

2.0.3

Operating system

N/A

Operating system version

all

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 27, 2023
@per1234 per1234 added topic: debugger Related to the integrated debugger topic: code Related to content of the project itself labels Feb 28, 2023
@kittaakos kittaakos self-assigned this Mar 22, 2023
@kittaakos
Copy link
Contributor

This should be possible with arduino/arduino-cli@748fcf6 starting from Arduino IDE 2.3.x. See the platform specification for more details: https://arduino.github.io/arduino-cli/latest/platform-specification/#debugger-configuration-directives

I am closing this issue as resolved. Please update the thread if you disagree or if some parts need to be updated.

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: code Related to content of the project itself topic: debugger Related to the integrated debugger type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants