STM32MP157C-DK2 board support and debug

You can use platform_pacakges to point tool-openocd to be sourced from a locally compiled bleeding edge version (that you must compile yourself). See link above and this for more details on packages.

Basically, make and make install the latest OpenOCD to some folder on your computer, copy the old package.json file cp ~/.patformio/packages/tool-openocd/package.json <your openocd install folder>/., then refer to the local installation via platform_packages = tool-openocd@file://<path to openocd install folder here> in the platformio.ini.

If that is till not working with the latest OpenOCD and toolchain version, please file a bug in OpenOCD for help.