See also https://github.com/platformio/platformio-core/issues/4020 Additionally, this commit replaces deprecated openocd option `adapter_khz` with `adapter speed`