FT2232H minimodule and OpenOCD

Hello,

I tried to run OpenOCD with FT2232HMiniModule.

But i have some issues.

Connection is:

AD0-TCK;

AD2-TDO;

AD1-TDI;

AD3-TMS;

AD5-VREFIN;

AD7-RTCK;

AC1-SRST;

AC0-TRST;

VCCIO-3V3;

Also connected GND. LPC2148 Vcc is supplied from target board.

I built latest version of OpenOCD with latest FTDI drivers.

And I want to debug LPC2148.

When I run OpenOCD with predefined configs for target and interface,

lpc2148.cfg and jtagkey.cfg, i got this messages:

C:\Program Files (x86)\OpenOCD\0.4.0\bin>openocd.exe
Open On-Chip Debugger 0.4.0 (2010-04-27-14:05)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
RCLK - adaptive
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain
Info : device: 6 "2232H"
Info : deviceID: 1041892096
Info : SerialNumber: FT71AUXA
Info : Description: FTDI Serial Interface A
Info : max TCK change to: 30000 kHz
Info : RCLK (adaptive clock speed)
Error: couldn't read enough bytes from FT2232 device (0 < 81)
Error: couldn't read from FT2232
Error: couldn't read enough bytes from FT2232 device (0 < 81)
Error: couldn't read from FT2232
Command handler execution failed
Warn : jtag initialization failed; try 'jtag init' again.

I watched signals on DSO and jtag lines does not change the initial states. TCK is always high.

FT2232H is working fine because i tested it with FTDI JTAG Demo.

I’m doing something wrong?! Any help is appreciated.

Regards

I solved problem by changing interface layout.

Now OpenOCD read device id, but script for atmega128 isn’t working.

AVR specific command are not recognized.

For example avr mass_erase 0 or wait halt, isn’t working.

I get this error:

Runtime error, file "command.c", line 650:
    invalid command name "wait"

I followed these instructions for building OpenOCD on windows.

http://piconomic.berlios.de/build_openocd.html

What can cause this issue?

Thanks