openocd+olimex stm32h103

hello,

Can anyone help in solving the problem…

i am using olimex stm32f103 board with olimex arm-usb-ocd.

when i try to compile the code using eclipse, it works fine.i installed the drivers from the cd provided by the olimex…

when try to debug using openocd…error occurs…

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 B
Error: ft2232.c:1358 ft2232_init_ftd2xx(): 1: x?
My configurations are:
.cfg file is
#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
#Olimex ARM-USB-OCD
ft2232_device_desc “Olimex OpenOCD JTAG A”
#ft2232_layout olimex-jtag
ft2232_layout jtagkey
ft2232_vid_pid 0x15BA 0x0003
jtag_speed 10

#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e

#target configuration
daemon_startup reset

#target
#target cortex_m3
target cortex_m3 little run_and_halt 0
run_and_halt_time 0 30

# working_area 0 0x20000000 16384 nobackup

#flash bank <chip_width> <bus_width>
flash bank stm32x 0x08000000 0x00010000 0 0 0
# 4k working area at base of ram
#working_area 0 0x20000800 0x1200 nobackup
# all ram
working_area 0 0x20000000 0x2000 nobackup

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open On-Chip Debugger

I got the same errors like you. But if you go back to the Debug View in eclipse and termiante the OpenOCD and run it again it should work… If not Try changing your device from B → A