I just received my programmer shield and I’m trying to find instructions on connecting a debugger to the Photon.
I’m using Linux, so @AndyW if you have time to help me out I’d really appreciate it.
So far here’s what I’ve done:
- Download OpenOCD source code
particle-ftdi.cfgfrom the programmer shield repository to the source code
- Compile and install OpenOCD with
99-openocd.rulesfrom the OpenOCD contrib folder to
/etc/udev/rules.d/so I don’t have to do
I don’t know what to do next. OpenOCD needs a script to connect to the target. Is it the
particle-ftdi.cfg above? When I run
openocd -f particle-ftdi.cfgit complains about clock speed. If I add a clock speed line, it complains about missing transport.
This thread has a lot of discussions about OpenOCD, but a lot of steps are implied.
I’ll update the programmer shield
README.md for Linux if I can figure out the steps.