Bri's worldelectronics, programming and more

deutsch

OpenOCD USB JTAG Adapter as AVR ISP Adapter

With avrdude an OpenOCD ARM JTAG adapter can be used as a programming adapter for AVR microcontrollers. The OpenOCD adapters internally use a FTDI FT2232 chip. Avrdude is used as the programming tool.

Pinout

On my OpenOCD USB JTAG adapter, the pins are occupied as follows:

ARM JTAG Adapter (20 pol) Pin ARM JTAG Adapter (20 pol)Signal FT232 Pin FT232 Signal AVR ISP (6 pol) Pin AVR ISP (6 pol) Signal
4GND6GND
5TDI23ADBUS14MOSI
7TMS21ADBUS35RST
9TCK24ADBUS03SCK
13TDO22ADBUS21MISO

You have to make an adapter cable based on the pin assignment and can then program the microcontroller with avrdude.

Flash AVR with avrdude

avrdude supports programming adapters with FTDI FT2232 chips directly. The avrdude programmer type is avrftdi. The OpenOCD USB Adapter is registered as a serial interface (/dev/ttyUSB0). The serial port must be passed as a parameter to avrdude.

Example:

sudo avrdude -B 100 -p m2560 -P /dev/ttyUSB0 -c avrftdi -U flash:w:test.hex

OpenOCD-USB Schematic

Bri's world© Torsten Brischalle. Design based upon BlueWebTemplates.com