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

Configure debug session as required for pio 5.2+ #31

Conversation

episource
Copy link
Contributor

API to configure debug session/options has changed starting with pio 5.2. This PR adapts platform.py to use the new API, hence making this platform compatible with pio 5.2+ (but breaking compatibility with older versions).

Additionally, this commit replaces deprecated openocd option adapter_khz with adapter speed.

When using CMSIS-DAP/SWD protocol for debugging, this PR resolves openocd error Error: CMSIS-DAP command CMD_DAP_SWJ_CLOCK failed.. This error is caused by adapter speed beeing unspecified.

See also platformio/platformio-core#4020

Additionally, this commit replaces deprecated openocd option `adapter_khz` with
`adapter speed`
@episource
Copy link
Contributor Author

There's also a branch with all my PR's merged together: https://github.com/episource/platform-raspberrypi/tree/my-platform

@ivankravets ivankravets merged commit 7331a75 into platformio:develop Mar 11, 2022
@ivankravets
Copy link
Member

Thanks for the PR!

@episource episource deleted the feature/configure-debug-session-pio-5.2+ branch March 13, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants