Hi Paul, From configure.log:
./configure --enable-ft2232_ftd2xx --no-create --no-recursion The libs are installed: thack...@cea05:~/openocd/openocd-0.1.0> ll /usr/local/lib/libftd* lrwxrwxrwx 1 root root 34 2009-05-21 09:52 /usr/local/lib/libftd2xx.so -> /usr/local/lib/libftd2xx.so.0.4.10 lrwxrwxrwx 1 root root 34 2009-05-21 09:52 /usr/local/lib/libftd2xx.so.0 -> /usr/local/lib/libftd2xx.so.0.4.10 -rwxr-xr-x 1 root root 313768 2009-05-20 16:09 /usr/local/lib/libftd2xx.so.0.4.10 What's really strange is that it worked with the STM32 last week, but now that doesn't work either. Thanks, Paul Paul Thomas wrote: > Paul, > > With my ft2232 device it shows up as /dev/usbdevX.Y_epZ. Did you build > openocd with libftdi and/or ftd2xx support? Is libftdi or ftd2xx > installed on your system? > > thanks, > Paul > > On Tue, Jun 9, 2009 at 2:32 PM, Paul J THACKER <paul.thac...@st.com > <mailto:paul.thac...@st.com>> wrote: > > Hi, > > Openocd-0.1.0 on OpenSUSE 11.0 with Amontec jtagkey-tiny: > > thack...@cea05:~/cartesio/eclipse/trunk> openocd -f jtagkey-tiny.cfg > Open On-Chip Debugger 0.1.0 (2009-05-21-09:56) Release > > > BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS > > > $URL: > > https://kc8...@svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.1.0/src/openocd.c > > <http://svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.1.0/src/openocd.c> > $ > Error: unable to open ftdi device: 18 > initialise_usb failed > Error: ListDevices: NONE > > Runtime error, file "command.c", line 456: > > Trace and debug outputs: > > open("jtagkey-tiny.cfg", O_RDONLY) = 3 > close(3) = 0 > open("jtagkey-tiny.cfg", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xb8092000 > read(3, "#interface\ninterface ft2232\nft22"..., 4096) = 118 > read(3, "", 4096) = 0 > read(3, "", 4096) = 0 > close(3) = 0 > munmap(0xb8092000, 4096) = 0 > gettimeofday({1244582536, 328068}, NULL) = 0 > gettimeofday({1244582536, 328114}, NULL) = 0 > gettimeofday({1244582536, 329023}, NULL) = 0 > gettimeofday({1244582536, 329079}, NULL) = 0 > gettimeofday({1244582536, 329212}, NULL) = 0 > gettimeofday({1244582536, 329255}, NULL) = 0 > gettimeofday({1244582536, 329362}, NULL) = 0 > gettimeofday({1244582536, 329404}, NULL) = 0 > gettimeofday({1244582536, 329534}, NULL) = 0 > gettimeofday({1244582536, 329577}, NULL) = 0 > open("/proc/sys/kernel/osrelease", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xb8092000 > read(3, "2.6.25.18-0.2-pae\n", 1024) = 18 > read(3, "", 1024) = 0 > close(3) = 0 > munmap(0xb8092000, 4096) = 0 > open("/proc/bus/usb", > O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3 > fstat64(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 > fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) > getdents64(3, /* 2 entries */, 1024) = 48 > getdents64(3, /* 0 entries */, 1024) = 0 > close(3) = 0 > open("/dev/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = > -1 ENOENT (No such file or directory) > write(2, "Error: unable to open ftdi devic"..., 38Error: unable to open > ftdi device: 18 > ) = 38 > open("/proc/bus/usb", > O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3 > fstat64(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 > getdents64(3, /* 2 entries */, 1024) = 48 > getdents64(3, /* 0 entries */, 1024) = 0 > close(3) = 0 > open("/dev/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = > -1 ENOENT (No such file or directory) > fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 6), ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xb8092000 > write(1, "initialise_usb failed\n", 22initialise_usb failed > ) = 22 > write(2, "Error: ListDevices: NONE\n\n", 26Error: ListDevices: NONE > > ) = 26 > write(2, "Runtime error, file \"command.c\","..., 47Runtime error, file > "command.c", line 456: > ) = 47 > exit_group(1) > > cea05:/home/thackerp/cartesio/eclipse/trunk # openocd -d 3 -f > jtagkey-tiny.cfg > Open On-Chip Debugger 0.1.0 (2009-05-21-09:56) Release > > > BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS > > > $URL: > > https://kc8...@svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.1.0/src/openocd.c > > <http://svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.1.0/src/openocd.c> > $ > User : 5 0 command.c:494 command_run_line(): > Debug: 6 0 configuration.c:88 find_file(): found jtagkey-tiny.cfg > Debug: 8 0 command.c:91 script_command(): script_command - interface > Debug: 9 0 command.c:108 script_command(): script_command - interface, > argv[0]=ocd_interface > Debug: 10 0 command.c:108 script_command(): script_command - interface, > argv[1]=ft2232 > Debug: 12 0 command.c:91 script_command(): script_command - > ft2232_device_desc > Debug: 13 0 command.c:108 script_command(): script_command - > ft2232_device_desc, argv[0]=ocd_ft2232_device_desc > Debug: 14 0 command.c:108 script_command(): script_command - > ft2232_device_desc, argv[1]=Amontec JTAGkey A > Debug: 16 0 command.c:91 script_command(): script_command - > ft2232_layout > Debug: 17 0 command.c:108 script_command(): script_command - > ft2232_layout, argv[0]=ocd_ft2232_layout > Debug: 18 0 command.c:108 script_command(): script_command - > ft2232_layout, argv[1]=jtagkey > Debug: 20 0 command.c:91 script_command(): script_command - > ft2232_vid_pid > Debug: 21 0 command.c:108 script_command(): script_command - > ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid > Debug: 22 0 command.c:108 script_command(): script_command - > ft2232_vid_pid, argv[1]=0x0403 > Debug: 23 0 command.c:108 script_command(): script_command - > ft2232_vid_pid, argv[2]=0xcff8 > User : 24 0 command.c:494 command_run_line(): > Debug: 26 0 command.c:91 script_command(): script_command - init > Debug: 27 0 command.c:108 script_command(): script_command - init, > argv[0]=ocd_init > Debug: 28 0 openocd.c:144 handle_init_command(): target init complete > Debug: 29 0 ft2232.c:1463 ft2232_init_ftd2xx(): 'ft2232' interface using > FTD2XX with 'jtagkey' layout (0403:cff8) > Error: 30 1 ft2232.c:1506 ft2232_init_ftd2xx(): unable to open ftdi > device: 18 > initialise_usb failed > Error: 31 1 ft2232.c:1532 ft2232_init_ftd2xx(): ListDevices: NONE > > Debug: 32 1 command.c:427 run_command(): Command failed with error > code -100 > User : 33 1 command.c:626 openocd_jim_vfprintf(): Runtime error, file > "command.c", line 456: > User : 34 1 command.c:626 openocd_jim_vfprintf(): > > Same error when run as root. FTDI device shows up under lsusb: > > thack...@cea05:~/cartesio/eclipse/trunk> lsusb > Bus 003 Device 002: ID 046d:c315 Logitech, Inc. Classic New Touch > Keyboard > Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Bus 002 Device 003: ID 0bc2:0502 Seagate RSS LLC > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 001 Device 004: ID 0403:cff8 Future Technology Devices > International, Ltd > Bus 001 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical > Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > I have no /dev/usb. Do I need some kind of udev rule to create it? > Anybody see this before? > > Thanks, > Paul > _______________________________________________ > Openocd-development mailing list > Openocd-development@lists.berlios.de > <mailto:Openocd-development@lists.berlios.de> > https://lists.berlios.de/mailman/listinfo/openocd-development > > _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development