Hello List, here I have a problem to get the JTAGkey working with libusb and libftdi under WindowsXP. I use the following versions:
- libusb-win32: 0.1.12.1 - libftdi: 0.16 OpenOCD was build under cygwin with the following options: CFLAGS="-O0 -g" ./configure --enable-maintainer-mode --disable-werror --disable-shared --ena ble-ft2232_libftdi I want to create a debug version to find the problem. Attached is the inf file from the JTAGkey. It looks that the problem is inside the ftdi_usb_open_desc function. Here the bus->devices is 0 every time. Best regards, Michael
jtagkey.inf
Description: Binary data
openocd.cfg
Description: Binary data
Debug: 10 15 configuration.c:83 find_file(): found openocd.cfg
Debug: 12 15 command.c:68 script_debug(): command - telnet_port
Debug: 13 15 command.c:77 script_debug(): telnet_port - argv[0]=ocd_telnet_port
Debug: 14 15 command.c:77 script_debug(): telnet_port - argv[1]=4444
Debug: 16 15 command.c:68 script_debug(): command - gdb_port
Debug: 17 15 command.c:77 script_debug(): gdb_port - argv[0]=ocd_gdb_port
Debug: 18 15 command.c:77 script_debug(): gdb_port - argv[1]=3333
Debug: 20 15 command.c:68 script_debug(): command - tcl_port
Debug: 21 15 command.c:77 script_debug(): tcl_port - argv[0]=ocd_tcl_port
Debug: 22 15 command.c:77 script_debug(): tcl_port - argv[1]=6666
Debug: 24 15 command.c:68 script_debug(): command - gdb_memory_map
Debug: 25 15 command.c:77 script_debug(): gdb_memory_map -
argv[0]=ocd_gdb_memory_map
Debug: 26 15 command.c:77 script_debug(): gdb_memory_map - argv[1]=enable
Debug: 28 15 command.c:68 script_debug(): command - gdb_flash_program
Debug: 29 15 command.c:77 script_debug(): gdb_flash_program -
argv[0]=ocd_gdb_flash_program
Debug: 30 15 command.c:77 script_debug(): gdb_flash_program - argv[1]=enable
Debug: 32 15 command.c:68 script_debug(): command - interface
Debug: 33 15 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 34 15 command.c:77 script_debug(): interface - argv[1]=ft2232
Debug: 36 15 command.c:68 script_debug(): command - ft2232_device_desc
Debug: 37 15 command.c:77 script_debug(): ft2232_device_desc -
argv[0]=ocd_ft2232_device_desc
Debug: 38 15 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Amontec
JTAGkey A
Debug: 40 15 command.c:68 script_debug(): command - ft2232_layout
Debug: 41 15 command.c:77 script_debug(): ft2232_layout -
argv[0]=ocd_ft2232_layout
Debug: 42 15 command.c:77 script_debug(): ft2232_layout - argv[1]=jtagkey
Debug: 44 15 command.c:68 script_debug(): command - ft2232_vid_pid
Debug: 45 15 command.c:77 script_debug(): ft2232_vid_pid -
argv[0]=ocd_ft2232_vid_pid
Debug: 46 15 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x0403
Debug: 47 15 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0xcff8
Debug: 49 15 command.c:68 script_debug(): command - jtag_khz
Debug: 50 15 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz
Debug: 51 15 command.c:77 script_debug(): jtag_khz - argv[1]=30
Debug: 52 15 core.c:1239 jtag_config_khz(): handle jtag khz
User : 53 15 command.c:396 command_print(): 30 kHz
Debug: 55 15 command.c:68 script_debug(): command - reset_config
Debug: 56 15 command.c:77 script_debug(): reset_config -
argv[0]=ocd_reset_config
Debug: 57 15 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst
Debug: 58 15 command.c:77 script_debug(): reset_config - argv[2]=srst_pulls_trst
Debug: 59 15 tcl.c:363 jim_newtap_cmd(): Creating New Tap, Chip: str710, Tap:
cpu, Dotted: str710.cpu, 8 params
Debug: 60 15 tcl.c:382 jim_newtap_cmd(): Processing option: -irlen
Debug: 61 15 tcl.c:382 jim_newtap_cmd(): Processing option: -ircapture
Debug: 62 15 tcl.c:382 jim_newtap_cmd(): Processing option: -irmask
Debug: 63 15 tcl.c:382 jim_newtap_cmd(): Processing option: -expected-id
Debug: 64 15 core.c:1089 jtag_tap_init(): Created Tap: str710.cpu @ abs
position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 65 15 target.c:4191 jim_target(): Target command params:
Debug: 66 15 target.c:4192 jim_target(): target create str710.cpu arm7tdmi
-endian little -chain-position str710.cpu -variant arm7tdmi
Debug: 68 31 command.c:68 script_debug(): command - bank
Debug: 69 31 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 70 31 command.c:77 script_debug(): bank - argv[1]=str7x
Debug: 71 31 command.c:77 script_debug(): bank - argv[2]=0x40000000
Debug: 72 31 command.c:77 script_debug(): bank - argv[3]=0x00040000
Debug: 73 31 command.c:77 script_debug(): bank - argv[4]=0
Debug: 74 31 command.c:77 script_debug(): bank - argv[5]=0
Debug: 75 31 command.c:77 script_debug(): bank - argv[6]=0
Debug: 76 31 command.c:77 script_debug(): bank - argv[7]=STR71x
Debug: 78 31 command.c:68 script_debug(): command - bank
Debug: 79 31 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 80 31 command.c:77 script_debug(): bank - argv[1]=str7x
Debug: 81 31 command.c:77 script_debug(): bank - argv[2]=0x400C0000
Debug: 82 31 command.c:77 script_debug(): bank - argv[3]=0x00004000
Debug: 83 31 command.c:77 script_debug(): bank - argv[4]=0
Debug: 84 31 command.c:77 script_debug(): bank - argv[5]=0
Debug: 85 31 command.c:77 script_debug(): bank - argv[6]=0
Debug: 86 31 command.c:77 script_debug(): bank - argv[7]=STR71x
Debug: 88 31 command.c:68 script_debug(): command - init
Debug: 89 31 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 90 31 openocd.c:129 handle_init_command(): target init complete
Debug: 91 31 ft2232.c:2047 ft2232_init(): ft2232 interface using shortest path
jtag state transitions
Debug: 92 31 ft2232.c:1966 ft2232_init_libftdi(): 'ft2232' interface using
libftdi with 'jtagkey' layout (0403:cff8)
Error: 93 31 ft2232.c:1985 ft2232_init_libftdi(): unable to open ftdi device:
device not found
Debug: 94 31 command.c:440 run_command(): Command failed with error code -100
User : 95 31 command.c:642 openocd_jim_vfprintf(): Runtime error, file
"openocd.cfg", line 80:
User : 96 31 command.c:642 openocd_jim_vfprintf():
User : 99 31 command.c:642 openocd_jim_vfprintf():
User : 101 31 command.c:642 openocd_jim_vfprintf():
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
