#128 Altera USB Blaster driver

closed
Marcel Telka
jtag (93)
5
2011-07-08
2006-05-01
Kolja Waschk
No

Hi,

I've written an experimental driver for Alteras USB
Blaster cable and published it as a patch to current
CVS version of openwince-jtag on

http://www.ixo.de/info/usb_jtag/

To access the cable, a new parallel port driver "ftdi"
had to be added, based on libftdi (I tested with
libftdi-dev 0.6 that comes with Debian Sarge).

http://www.intra2net.com/de/produkte/opensource/ftdi/

You can connect it like

cable ftdi * UsbBlaster

But beware, it is VERY slow (100x slower than
ByteBlaster driver): "detect" with a single EP1C12 in
the chain takes 17 seconds (as opposed to 0.17 s with
ByteBlaster). This is probably due to the fact that
bit banging over USB has a much higher overhead than
with a directly attached parallel port. However, I
tried to circumvent this by adding a "transfer()"
function that accumulates several bit changes into a
single transfer for the USB Blaster. There may well be
some flaw in the code that puts the brake on the transfers.

The addition of transfer() affects every cable driver,
but adding it is as easy as adding "generic_transfer"
in your cable_driver_t. I even noticed a slight speedup
with the byteblaster driver after adding
"generic_transfer" :)

I won't spend too much more time on this driver, as I'm
not really sure whether using this adapter in an
application designed for direct parallel port access is
the right way to go (and I'm not sure whether
openwince-jtag is still alive anyway?!).

Kolja

Discussion

  • Kolja Waschk
    Kolja Waschk
    2006-05-01

    Logged In: YES
    user_id=478715

    Tuning regarding latency timer and baud rate now let
    "detect" take only 2.3 seconds (that's still 15x what
    ByteBlaster driver takes).

     
  • Marcel Telka
    Marcel Telka
    2011-07-08

    • status: open --> closed
     
  • Marcel Telka
    Marcel Telka
    2011-07-08

    The openwince project is no longer active.

    If this report is related to JTAG Tools, please try UrJTAG at http://urjtag.sourceforge.net/