Xiaofan, thanks for this confirmation. We can say that we identified the issue.
However, it is still strange that the issue is not reproducible by Mathias... Mathias, are you sure that you used latest D2XX, version 1.0.4 ? BR, Drasko On Tue, Mar 29, 2011 at 3:10 PM, Xiaofan Chen <[email protected]> wrote: > On Mon, Mar 28, 2011 at 10:07 PM, Drasko DRASKOVIC > <[email protected]> wrote: >> Hi all, >> I downloaded D2XX driver from here : >> http://www.ftdichip.com/Drivers/D2XX.htm. It is version 1.0.4 for >> Linux x86 (32-bit). >> >> I tried compiling OpenOCD with libftd2xx statically (which is by >> default). >> So obviously it was missing libpthrads. >> >> After adding -lpthread to CFLAGS, there is another problem : >> >> So librt is already missing, and I had to add -lrt also to CFLAGS. >> >> After this I was able to sucessfully compile OpenOCD with libftd2xx, >> with observation of warnings like this during compile : >> > > Yes I can reproduce these issues. I think this is because that > the new version of libftd2xx is based on libusb-1.0 and that > libusb-1.0 needs libpthread and librt. > > Supposedly dynamically > link to libusb-1.0 will not need these two. > >> >> When I try to start newly compiled OpenOCD binary I am getting : >> >> >> Debug: 169 18 ft2232.c:2433 ft2232_init() 104248: ft2232 interface >> using shortest path jtag state transitions >> Debug: 170 18 ft2232.c:2133 ft2232_init_ftd2xx() 104248: 'ft2232' >> interface using FTD2XX with 'jtagkey' layout (0403:cff8) >> Error: 171 56 ft2232.c:2239 ft2232_init_ftd2xx() 137560: unable to get >> latency timer: 4 >> Debug: 172 56 command.c:638 run_command() 137448: Command failed with >> error code -100 >> >> Came behavior with libftd2xx as a shared lib. >> >> libftd2xx0.4.16 which I used before does not show this error (but has >> some other problems and that's why I want to replace it with new >> version or ideally Amontec officiel drivers). >> >> I am using Amontec JTAGKey2 probe. Since Officiel Amontec drivers are >> based on version 1.0.4 of D2XX I am getting exactly same error. >> >> What can be wrong here ? > > Nothing wrong. I can reproduce your issues as well. I think the latest > d2xx library needs some fix from the OpenOCD side or from the d2xx side. > > mcuee@ubuntu:~/Desktop/build/openocd/lpc2148$ openocd-d2xx -f > interface/jtagkey2.cfg -f board/olimex_lpc_h2148.cfg > Open On-Chip Debugger 0.5.0-dev-00809-gbe14e8c (2011-03-29-21:00) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.berlios.de/doc/doxygen/bugs.html > Info : only one transport option; autoselect 'jtag' > init_targets > Warning - assuming default core clock 12MHz! Flashing may fail if > actual core clock is different. > trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain > adapter_nsrst_delay: 100 > jtag_ntrst_delay: 100 > 1500 kHz > Error: unable to get latency timer: 4 > in procedure 'init' > > > > -- > Xiaofan > _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
