Tharon Hall

Issue to Beware of In Debugging OpenOCD

Discussion created by Tharon Hall on Jan 16, 2015
Latest reply on Jan 20, 2015 by Erich Styger

I was having an issue in which, out of the blue, I could not debug my FRDM-K22F board with the P&E OpenOCD driver for anything, and it had been working flawlessly before. It would start to connect, then disconnect with no indication as to why it did so. You might see a message like:

 

Initializing.

Target has been RESET and is active.

Disconnected from "127.0.0.1" via 127.0.0.1

Target Disconnected.

 

The problem turns out to be that if you create a breakpoint for code you later remove, and do not COMPLETELY delete the breakpoint (not just disable it) the debugger just crashes without any warning at startup and provides nothing to indicate why. I just about pulled my hair out figuring this one out.

 

I found the answer on the P&E Forum: P&E Microcomputer Systems

 

Hope this tip saves someone some heartache!

Outcomes