Page 1 of 1

FTDI FaNet + SWD JTAG = TRUE ?

Posted: Sat Feb 23, 2013 7:25 pm
by E3V3A
While I was skimming around the ES6xxx sources, I came across this:

./driver/mstar-X10P/usb/serial/ftdi_sio.c

Code: Select all

...
/*
 * First port on JTAG adaptors such as Olimex arm-usb-ocd or the FIC/OpenMoko
 * Neo1973 Debug Board is reserved for JTAG interface and can be accessed from
 * userspace using openocd.
 */
static int ftdi_jtag_probe(struct usb_serial *serial) {
	struct usb_device *udev = serial->dev;
	struct usb_interface *interface = serial->interface;
	dbg("%s", __func__);
	if (interface == udev->actconfig->interface[0]) {
		dev_info(&udev->dev,
			 "Ignoring serial port reserved for JTAG\n");
		return -ENODEV;
	}
	return 0;
}
...
This smells SWD (Serial Wire Debug) JTAG over USB, all the way! This is specified by IEEE 1149.7.

The questions are :
Q1. What OpenOCD config files should be used?
Q2. What type of HW should be used on the PC-side of the FaNet FTDI cable? **
**Please, note in this configuration the FTDI host-side is connected to TV USB port and the other side, either by another FTDI cable (configured as FaNet) or some other JTAG device.

A1. <unknown?> (But we have some T32 debug config files for Samsung, that might help shed some light...)
A2. Perhaps we can use either, another FTDI or any other standard JTAG, but with only TCLK and TMSC connected.

Other References:
viewtopic.php?f=18&t=4511
viewtopic.php?f=18&t=4638
viewtopic.php?f=18&t=4139
viewtopic.php?f=20&t=2510&start=10
http://www.openjtag.org/
http://www.embedded.com/