I’m having difficulty with getting debugging working on the Photon with programmer shield. I am running on windows 10 and have followed the steps in this guide:
but I am having issues with launching openOCD.
Starting openOCD from terminal gives me these errors:
If this doesn’t quite fit for the Particle Programmer Shield, I’m sure Brandon will be happy to extend his post for that particular need - just post your desire there.
I have moved your other thread into this here since double posting for basically the same issue is not appreciated - it just scatters the conversation over multiple threads and ties up resources without extra benefit.
I added the path of the openocd executable to my settings.json file by adding a “cortex-debug.openocdPath” and the ENOENT error does not occur anymore. Now however, openocd seems to timeout and shows this error instead:
I have looked at that topic but it does not really help in this case. Also I have downloaded openOCD from that link but there was no difference. I tried earlier versions of it too but nothing changed. Is it possible that my programmer shield is simply broken?
i suggest checking to see if openocd.exe is in the windows system path. i think it should have been added at install time but check. maybe add it to your user variables path also.
I seem to have fixed the problem with the openOCD server timing out by plugging the programmer shield into a different usb port. Now the debugger will run in workbench but I am getting a hard fault before the program even gets to setup().