lpcware

Debugging M0 via openocd/gdb?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by omegahacker on Sun Jun 15 18:17:30 MST 2014
I'm getting closer and closer to having FreeRTOS running properly on the M0, but I keep finding that it's going to be a lot faster if I can actually single-step what's going on.

I have openocd 0.6.0 going with it's stock config files (include <adapter>, include <lpc4350>) and that works fine for the M4, but I have no idea how to actually attach GDB to the M0 without halting the M4 or anything else.  It'd be ideal if I could connect to it after my loader has set up the codebase, then reset the M0 via RGU registers and catch it during "boot".

Any hints?

Outcomes