Failed to launch GDB: .pioinit:13: Error in sourced command file: Remote communication error. Target disconnected.: Success. (from interpreter-exec console "source .pioinit")

I’m dealing with a similar issue with an atmelsam board where I was/am getting the same error. Of course my situation is different and I’m using a Blackmagic Probe Clone (jeffprobe)and hope to use SWD not JTAG

They both build

but I get this

which makes me nervous because I don’t necessarily want to upload… I’m positive i’ll break it.

I want to explore being to be able to debug/connnect to the target live and see where I’m going wrong in my code.

I was getting the same error as he was here but now I can’t “start debugging” because I must have screwed or turned off a task

At one point I thought it had something to do with .pioinit but I can only find a cached file

C:\Users\Westo.platformio\packages\tool-openocd

I found this post (bellow) and learned that (at the time) jlink had not been incorporated into atmelsam. I believe I’m using the latest platform_packages framework and am wondering if maybe blackmagic probe had not been added either meaning that I’ll need to do a custom and I have no idea where to do that.
I feel like I’m right on the Devs heels when it comes to pushing the functionality of atmelsam. It’s been one thing after another. That’s not a judgement. It’s amazing that any of this works.

So my debugger has UART and SWD and I believe runs it’s on dbg server. How to connect to it and whatnot is a total mystery.