Skip to content
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

Add debug openocd #1976

Merged
merged 4 commits into from
Mar 18, 2023
Merged

Add debug openocd #1976

merged 4 commits into from
Mar 18, 2023

Conversation

gautierg-st
Copy link
Contributor

@gautierg-st gautierg-st commented Mar 15, 2023

Summary

This PR implements the debug feature in Arduino 2.0

  • Modifies variant script to generate openocd.cfg file for all variants
  • Adds debugger configuration to platform.txt
  • Update boards.txt for all families
  • Adds openocd.cfg for all variants

Limitations

Doesn't work if selected board is a Nucleo-* due to arduino/arduino-ide#1960
Only use with Generic STM32xx series for the moment.

Closing issues

Fixes #1896

@fpistm fpistm added the enhancement New feature or request label Mar 15, 2023
@fpistm fpistm added this to the 2.5.0 milestone Mar 15, 2023
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One remarks to test else LGTM.
Thanks

platform.txt Outdated Show resolved Hide resolved
@fpistm
Copy link
Member

fpistm commented Mar 17, 2023

PR have been updated to workaround issue with {build.variant} property expansion:
arduino/arduino-ide#1960

@fpistm fpistm self-requested a review March 17, 2023 15:21
fpistm and others added 3 commits March 17, 2023 16:41
Due to several issue with Arduino IDE 2 to expand some
properties within Debugger configuration, postbuild recipe
is used to copy the openocd.cg from the correct stm32 series.
Somes issues have been raised on Arduino IDE GitHub, when solved
this recipes should be removed and openocdscript added in
the boards.txt.

Signed-off-by: Frederic Pillon <[email protected]>
STM32C0 has no target cfg file in openocd scripts directory.
For all other variants, the openocd file is added.

Signed-off-by: Guillaume Gautier <[email protected]>
@fpistm fpistm merged commit 5c87586 into stm32duino:main Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arduino IDE 2.x Debug feature support
2 participants