SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By shadowind
#172992
Hi,

I'm trying to figure out how make openocd works with ARM-USB-OCD-H and JTAG-SWD adapter from Olimex.
But I'm a newbie with openocd and I've no idea about where I could do it.

Could it work just by defining the correct config file?
Is there some dev to do and include in openocd?

Cordially
By hsutherl
#173090
JTAG-SWD: I don't think openocd supports this yet.

ARM-USB-OCD-H: The Windows version from Freddie Chopin's site has support for the ARM-USB-OCD_H compiled in.
If you're building from source, look at the output of configure --help, and then at the Debug Adapter Hardware and Debug Adapter Configuration chapters in the openocd docs. You'll want to enable support for one of the FT2232 drivers.

OpenOCD includes a config file for the ARM-USB-OCD_H. Look at the Config File Guidelines chapter of the docs. If you're using an openocd.cfg file, include a line
Code: Select all
find interface/olimex-arm-usb-ocd-h.cfg
From the command line use
Code: Select all
openocd -f path/to/olimex-arm-usb-ocd-h.cfg -f path/to/your_target.cfg
That same Config File Guidelines chapter lists a lot of boards for which openocd includes pre-packaged config files.