Olimex JTAG with AT91SAM7X

Hi, I’m new here.

I hope there isn’t any existing thread about this here, i searched and didn’t found anything for my question. If a thread already exist, sorry.

I have an Atmel AT91SAM7X-EK Board which i am trying to flash with an Olimex JTAG. But i think i am using the wrong config-file, because all i get is:

ft2232.c:1341 ft2232_init_ftd2xx(): unable to open ftdi device: 2

I read something about OpenOCD Config Files, but nothing really helped me. Does a correct cfg-file exist for the SAM7X or can anyone give me a hint what exactly i am doing wrong?

Any useful links regarding OpenOCD-Config-Files are welcome :smiley:

Thanks Bublux

p.s.: sorry for my bad english :wink:

OpenOCD can’t talk to the cable. What I would do is locate a config file for the cable and a config file for the chip and copy the information for the cable from the first file into the file that contains the chip information.

It look to me an driver installation problem.

Jonathan

It was a driver problem, reinstalling the driver helped.

Thanks!

Hi all,

I have the same problem on Windows Vista. I’m using openOCD 204, ARM-USB-TINY. Here’s what I get:

Error: ft2232.c:1341 ft2232_init_ftd2xx(): unable to open ftdi device: 2

Error: ft2232.c:1356 ft2232_init_ftd2xx(): ListDevices: 2

Error: ft2232.c:1358 ft2232_init_ftd2xx(): 0: Olimex OpenOCD JTAG TINY B

Error: ft2232.c:1358 ft2232_init_ftd2xx(): 1: Xš:

This is the part of the config that matters:

#interface

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x0004

jtag_speed 20

What is the solution?

Thanks,

Gil

Problem solved with this config:

telnet_port 4444

gdb_port 3333

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x0004

jtag_speed 20

reset_config trst_and_srst separate

jtag_device 4 0x1 0xf 0xe

jtag_nsrst_delay 333

jtag_ntrst_delay 333

daemon_startup reset

target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4

run_and_halt_time 0 30

target_script 0 reset oocd_flash2294.script

working_area 0 0x40000000 0x4000 nobackup

flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14746 calc_checksum

Thanks,

Gil