OpenOCD and usb2parallel adapter

Hello all !

Does anybody know if it possible to use OpenOCD with a wiggler cable attached to a usb2parallel adapter?? Suse creates /dev/usb/lp0 (so I changed parport.c to use that instead of /dev/parportX) and OpenOCD is configured with parport_ppdev, but I got the following error:

Info: configuration.c:50 configuration_output_handler(): Command parport_port not found

Info: configuration.c:50 configuration_output_handler(): Command parport_cable not found

Error: jtag.c:1184 jtag_init(): No valid jtag interface found (parport_ppdev)

Although I have set parport_port and parport_cable in the .cfg file and use OpenOCD normally with this .cfg on other machines with parallel ports (with --enable-parport).

Thanks for the help.

apadilha,

You cannot use an usb to parallel adapter. This kind of adapters was dedicated for PRINTER parallel port !

In an other hand, bit-bangging IO from USB is just very very slow (one usb2.0 full-speed port access = 1 to 2 ms).

Using usb, you have to packet the data for minizing the number of USB access.

But why do you not use an USB to JTAG cable as the Amontec JTAGkey or the Amontec JTAGkey-Tiny priced at €29.- !

http://www.amontec.com/jtagkey.shtml

http://www.amontec.com/jtagkey-tiny.shtml

JTAGkey (- Tiny ) comes with Linux and MS drivers and is fully integrated by OpenOCD.

The JTAGkey-Tiny is a Wiggler v. USB to JTAG!

Regards,

Laurent

The one i know that does work is the Quatech pcmcia SPP-100, but this is not cheap - approx £100.

You need to look for one that is memory mapped like the Quatech.

As Laurent says it is cheaper to buy a JTAGkey or make your own ftdi based device.

Regards

Spen

Thanks for the answers. For the moment, no outdoors programming then…