Error: Can't find board/esp32s2.cfg in procedure 'script'

OpenOCD from 2022 won’t have ESP32-P4 support. The file exists in newer versions.

Fix your platformio.ini and use a platform like pioarduino (https://github.com/pioarduino/platform-espressif32) that has a more up-to-date OpenOCD version. If you’re already using that platform, make sure you’re using the latest version of it, or file a bug report there.

Also intersects what we alrady talked about in Greetings! With problems on how to set up the development environment for ESP32-P4 using platformIO,I would like to seek your guidance or suggestions . Thank you - #2 by maxgerhardt.