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.
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
withadapter 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 byadapter speed
beeing unspecified.