|
From: Xiaofan C. <xia...@gm...> - 2013-03-07 05:57:55
|
On Thu, Mar 7, 2013 at 1:52 PM, Xiaofan Chen <xia...@gm...> wrote: > On Mon, Feb 25, 2013 at 11:28 PM, R. Diez <rdi...@ya...> wrote: >> I bought a few months ago a cheap USB-Blaster clone, and now I have an Arduino Due I want to test it with. >> >> I am building OpenOCD like this: >> >> git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd >> cd openocd >> ./bootstrap >> ./configure --enable-maintainer-mode --enable-usb_blaster_libftdi --prefix=$HOME/rdiez/arduino/openocd/openocd-bin >> make -j 5 >> make install >> >> Then I tried to run it like this: >> >> ~/rdiez/arduino/openocd/openocd-bin/bin/openocd -f interface/altera-usb-blaster.cfg -d 3 >> >> I am getting this error: >> >> Error: 66 6 usb_blaster.c:451 usb_blaster_init(): unable to get latency timer >> >> Please see the full log below. I am running Ubuntu 12.04. >> >> I tried searching the Internet for answers, and I came across this message: >> >> http://www.mail-archive.com/ope...@li.../msg17192.html >> >> However, >> I couldn't make out the status of that patch. The other information I >> have found was either not applicable (lib ftd2xx instead of libftdi) or >> got me confused. >> >> Can anybody help? >> >> Please copy me on the answers, as I am not subscribed to this list. > > It could be the problem with libftdi 0.xx. Which version of libftdi are > you using? 0.20 is the latest one for the legacy libftdi-0.x release. > > I remember that libftdi1-1.0 could help this last time > with one of the users. libftdi1-1.0 has been formally released recently, > but then the library name is changed so there may be minor changes > needed to build with libftdi1-1.0 instead of libftdi-0.xx. Okay I think the issue is with your cheap clone of USB Blaster. Please refer to this thread and try the patch. http://lists.berlios.de/pipermail/openocd-development/2011-June/019820.html "The USB Blaster clone does not use the original FT245 chip, and so it tries to emulate its behavior. As it turns out, the API call FT_GetLatencyTimer is not properly emulated by the clone, and this makes OpenOCD abort. In reality, this API call is not necessary, so I have removed this call." -- Xiaofan |