OpenOCD debugging

Does anyone know how to get OpenOCD / GDB debugging to work with the Photon? There’s a great guide here for the Spark Core by @omidontop, but I can’t seem to replicate it for the Photon.

Does there exist a similar guide for the Photon?

If I set the device to DFU mode I can connect and halt the device (and probably more), but without DFU mode it won’t connect.

Yes, there is a great tutorial by @jvanier.


And there also is a sectio in the official docs


I found that there’s a really solid step by step guide here that covers the full setup of Eclipse for C++ (Windows/Mac/Linux) as well as debugging with both jTag and St-Link v2. Got me running, so now I have a different problem :wink: