PlatformIO Community

PIO Debug hangs at "Initializing remote target..." (new board, cmsis-dap)

Hi,
I’m currently trying to get my psoc6 board enabled within pio, however I’m stuck at getting the debug module to work.
I use the cmsis-dap as upload_protocol and debug_tool
Building and uploading works perfectly well. The invocation of openocd works fine, and since upload uses ‘debug_tool’ as a basis the setup for this should be fine. (Code was added to platform.py and main.py as well as the json)

But if I want to run pio debug, I get the message
PlatformIO Unified Debugger → http://bit.ly/pio-debug
PlatformIO: debug_tool = cmsis-dap
PlatformIO: Initializing remote target…
and thats it.

In task manager I do see that the gdb was started and is basically looking for the gdb server instance of openocd, which seems to be never launched.

=> Any ideas what might be the issue?
How can I ‘debug’ this issue? which scripts get invoked for launching the openocd server?
I followed the example of the nordic boards and also compared to other cmsis-dap boards.

Unfortunately there does not seem to be a guide how to add a new platform/board.

Are you running just pio debug or the documented pio debug --interface=gdb -x .pioinit command?