Hi Richard,
Enjoyed your Microchip training recently.
At the moment I am just about to release a plugin that will automatically launch OpenOCD within CodeBlocks.
But for now, you can run OpenOCD standalone with a script. The script contains the important info such as the GDB port.
You then go to the debugger/options tab (right click your project, debugger tab). In the remote connections tab, you can specify a port to match whatever port was selected in the OpenOCD script.
You will most likely specify extra init commands such as "b main", to breakpoint at main etc...
Then: Run OpenOCD (from a script or command line for instance).
CB: Click debug, then it should connect.
The biggest problem you will have (without modification of CB) is halting a running process:
http://forums.codeblocks.org/index.php/topic,8577.0.htmlMartin.