USB-AtmelPrg as JTAG Cable for OpenOCD
USB-AtmelPrg is a USB-based interface cable which can be used as SPI (in-system) programmer for AVRs and also as JTAG adapter, e.g. for ARM microcontrollers with integrated on-chip debugger. This page describes how to set up USB-AtmelPrg as JTAG cable backend for the OpenOCD (open on-chip debugger).
This is outdated!
Do not use this. Instead, take a look at one of the cheap FT2232-based USB JTAG adapters which are natively supported by OpenOCD and are much faster than my old USB-AtmelPrg.
OpenOCD (open on-chip debugger) is a free project which enables you to debug programs running on an ARM microcontroller by providing the necessary glue between the GNU debugger (GDB) and the JTAG interface. It takes GDB commands, translates them into the corresponding JTAG waveforms which are then applied to the ARM's JTAG interface via an interface cable such as USB-AtmelPrg.
While OpenOCD natively supports several common JTAG interface cables, there is no built-in support for USB-AtmelPrg. Hence, the source code has to be patched to add this functionality.
Patching and Compiling OpenOCD with Support for USB-AtmelPrg
You need three things:
After checking out the SVN code, apply the patch...