EmbeddedRelated.com
Forums
Memfault State of IoT Report

Connecting AT91SAM7S-EK by JTAG interface

Started by drag...@gmail.com July 20, 2010
Hello friends, i recently get my AT91SAM7S-EK; for JTAG connection i got an ARM wiggler that goes from JTAG port to DB25. Since my lap has no DB25 port i have to connect the wiggler to a DB25 - DB9 - USB cable. (which means that i have a device that converts a DB25 to DB9 and that DB9 output is then connected to a DB9-to-USB cable)

Now, i'm working with openOCD but i don't exactly now what i have to put in the configuration, i got this options

* --enable-parport
* --enable-parport_ppdev
* --enable-amtjtagaccel
* --enable-ft2232_ftd2xx (*)
* --enable-ft2232_libftdi
* --with-ftd2xx=/path/to/d2xx/

since i'm using the usb i guess parport is out. I've been reading about the ft2232 but i don't know if my DB25-BD9 device uses it or even the DB9-USB cable. I have seen that some JTAG devices that converts DB25 to USB use this chip but i don't know if the kind of cables i'm using have this ft2232 chip.
Here is an example of the cable i'm using
http://www.steren.com/catalogo/interior3.asp?pdto=USB-SER

So, that's my problem, which configuration do i have to use?

Thank you so much!
Am 21.07.2010 04:43, schrieb d...@gmail.com:
> Hello friends, i recently get my AT91SAM7S-EK; for JTAG connection i
> got an ARM wiggler that goes from JTAG port to DB25. Since my lap has
> no DB25 port i have to connect the wiggler to a DB25 - DB9 - USB cable.
> (which means that i have a device that converts a DB25 to DB9 and that
> DB9 output is then connected to a DB9-to-USB cable)

I doubt that it will work. The USB<->DB25 adapters do not provide the
flexibility the old Centronix port gave.
It is often just the USB printer-profile.

> * --enable-parport

If anything, then this option.

> So, that's my problem, which configuration do i have to use?

I think, you need a USB wiggler or if you have a PC, get a card with a
real Centronix port.

--
42Bastian
+
| http://www.sciopta.com
| Fastest direct message passing kernel.
| IEC61508 certified.
+
What you have setup will never work. Its like you are trying to hook up a Car to a railway carrige and then expecting it to work, It never will.

1. Jtag wigglers, use a 25pin parallel centronics printer port, a USB centronics printer almost certainly not port will not work becuase it will not replicate a centronics printer port fully. The Jtag wigler uses some pins as inputs etc which the USB adapters can't do.

2. You have used a 25 pin to 9 pin adapter, this is for serial ports which is a completely different type of interface

3. You are using a USB serial adapter which is a completely different type of interface. A serial port is NOT a parallel port.

You should look at using a USB Jtag adapter, of which there are many types. As you want to use OpenOCD choose one which is supported by it maybe one of the Olimax devices
http://www.olimex.com/dev/arm-usb-tiny-h.html

You could also look here http://www.yagarto.de/links.html under the section on Jtag Hardware

Good Luck

Martin

--- In A..., dragonflyluis@... wrote:
>
> Hello friends, i recently get my AT91SAM7S-EK; for JTAG connection i got an ARM wiggler that goes from JTAG port to DB25. Since my lap has no DB25 port i have to connect the wiggler to a DB25 - DB9 - USB cable. (which means that i have a device that converts a DB25 to DB9 and that DB9 output is then connected to a DB9-to-USB cable)
>
> Now, i'm working with openOCD but i don't exactly now what i have to put in the configuration, i got this options
>
> * --enable-parport
> * --enable-parport_ppdev
> * --enable-amtjtagaccel
> * --enable-ft2232_ftd2xx (*)
> * --enable-ft2232_libftdi
> * --with-ftd2xx=/path/to/d2xx/
>
> since i'm using the usb i guess parport is out. I've been reading about the ft2232 but i don't know if my DB25-BD9 device uses it or even the DB9-USB cable. I have seen that some JTAG devices that converts DB25 to USB use this chip but i don't know if the kind of cables i'm using have this ft2232 chip.
> Here is an example of the cable i'm using
> http://www.steren.com/catalogo/interior3.asp?pdto=USB-SER
>
> So, that's my problem, which configuration do i have to use?
>
> Thank you so much!
>

The USB to serial cable you have will not work. The wiggler is designed to work with a PC parallel printer port, not a serial port.

Cliff

--- In A..., dragonflyluis@... wrote:
>
> Hello friends, i recently get my AT91SAM7S-EK; for JTAG connection i got an ARM wiggler that goes from JTAG port to DB25. Since my lap has no DB25 port i have to connect the wiggler to a DB25 - DB9 - USB cable. (which means that i have a device that converts a DB25 to DB9 and that DB9 output is then connected to a DB9-to-USB cable)
>
> Now, i'm working with openOCD but i don't exactly now what i have to put in the configuration, i got this options
>
> * --enable-parport
> * --enable-parport_ppdev
> * --enable-amtjtagaccel
> * --enable-ft2232_ftd2xx (*)
> * --enable-ft2232_libftdi
> * --with-ftd2xx=/path/to/d2xx/
>
> since i'm using the usb i guess parport is out. I've been reading about the ft2232 but i don't know if my DB25-BD9 device uses it or even the DB9-USB cable. I have seen that some JTAG devices that converts DB25 to USB use this chip but i don't know if the kind of cables i'm using have this ft2232 chip.
> Here is an example of the cable i'm using
> http://www.steren.com/catalogo/interior3.asp?pdto=USB-SER
>
> So, that's my problem, which configuration do i have to use?
>
> Thank you so much!
>

This is the biggest problem about the latest laptops which are running around
now a days, most of the cheaper or even mostly expensive one's will never
provide a PC parallel port. You either have to get an older model laptop or a
different type which provides parallel port, but this could then cost you !

Rgds.

________________________________
From: techguy2000
To: A...
Sent: Wed, July 21, 2010 8:47:24 PM
Subject: [AT91SAM] Re: Connecting AT91SAM7S-EK by JTAG interface

The USB to serial cable you have will not work. The wiggler is designed to work
with a PC parallel printer port, not a serial port.

Cliff

--- In A..., dragonflyluis@... wrote:
>
> Hello friends, i recently get my AT91SAM7S-EK; for JTAG connection i got an ARM
>wiggler that goes from JTAG port to DB25. Since my lap has no DB25 port i have
>to connect the wiggler to a DB25 - DB9 - USB cable. (which means that i have a
>device that converts a DB25 to DB9 and that DB9 output is then connected to a
>DB9-to-USB cable)
>
> Now, i'm working with openOCD but i don't exactly now what i have to put in the
>configuration, i got this options
>
> * --enable-parport
> * --enable-parport_ppdev
> * --enable-amtjtagaccel
> * --enable-ft2232_ftd2xx (*)
> * --enable-ft2232_libftdi
> * --with-ftd2xx=/path/to/d2xx/
>
> since i'm using the usb i guess parport is out. I've been reading about the
>ft2232 but i don't know if my DB25-BD9 device uses it or even the DB9-USB cable.
>I have seen that some JTAG devices that converts DB25 to USB use this chip but i
>don't know if the kind of cables i'm using have this ft2232 chip.
> Here is an example of the cable i'm using
> http://www.steren.com/catalogo/interior3.asp?pdto=USB-SER
>
> So, that's my problem, which configuration do i have to use?
>
> Thank you so much!
>
On 21/07/2010 19:03, Maziar Tasbihi wrote:
>
>
> This is the biggest problem about the latest laptops which are running
> around now a days, most of the cheaper or even mostly expensive one's
> will never provide a PC parallel port. You either have to get an older
> model laptop or a different type which provides parallel port, but this
> could then cost you !

Docking stations for laptops often have the necessary, but are
incredibly inconvenient - IMHO.
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.

Even if you get a parallel port (for example through a PCMCIA add in card) for your laptop you won’t be happy with the reliability of parallel port JTAG wigglers. I have a drawer full of parallel port JTAG wigglers from a variety of manufacturers and none have worked consistently. For a modern system, get one of the many USB-to-JTAG adapters:

http://olimex.com/dev/arm-usb-ocd.html
http://www.ecrater.com/p/5735294/open-jtag-usb-emulator-rs232-2
http://www.amontec.com/jtagkey-tiny.shtml
http://www.atmel.com/dyn/products/tools_card.asp?tool_id892

These range from $30 to $105. I have personally used the Olimex and Amontec USB-to-JTAG interfaces successfully with OpenOCD on Atmel AT91SAM7 parts. In production where there is one static script that programs my boards I use Amontec (a mix of tinys, JTAGS, and JTAG-2s). On my desk for development I use an Atmel SAM-ICE because the SAM-BA GUI works well for the variety of different things that I might do on any given day. For other options Google “usb jtag arm”.

I like the idea of the Open JTAG units (such as the ecrater unit above) because it has a serial port integrated into the dongle that you probably want for your console as well.

Enjoy,
Bill.
________________________________
From: techguy2000
To: A...
Sent: Wed, July 21, 2010 8:47:24 PM
Subject: [AT91SAM] Re: Connecting AT91SAM7S-EK by JTAG interface

The USB to serial cable you have will not work. The wiggler is designed to work with a PC parallel printer port, not a serial port.

Cliff

--- In A..., dragonflyluis@... wrote:
>
> Hello friends, i recently get my AT91SAM7S-EK; for JTAG connection i got an ARM wiggler that goes from JTAG port to DB25. Since my lap has no DB25 port i have to connect the wiggler to a DB25 - DB9 - USB cable. (which means that i have a device that converts a DB25 to DB9 and that DB9 output is then connected to a DB9-to-USB cable)
>
> Now, i'm working with openOCD but i don't exactly now what i have to put in the configuration, i got this options
>
> * --enable-parport
> * --enable-parport_ppdev
> * --enable-amtjtagaccel
> * --enable-ft2232_ftd2xx (*)
> * --enable-ft2232_libftdi
> * --with-ftd2xx=/path/to/d2xx/
>
> since i'm using the usb i guess parport is out. I've been reading about the ft2232 but i don't know if my DB25-BD9 device uses it or even the DB9-USB cable. I have seen that some JTAG devices that converts DB25 to USB use this chip but i don't know if the kind of cables i'm using have this ft2232 chip.
> Here is an example of the cable i'm using
> http://www.steren.com/catalogo/interior3.asp?pdto=USB-SER
>
> So, that's my problem, which configuration do i have to use?
>
> Thank you so much!
>
--- In A..., Maziar Tasbihi wrote:
>
> This is the biggest problem about the latest laptops which are running around
> now a days, most of the cheaper or even mostly expensive one's will never
> provide a PC parallel port. You either have to get an older model laptop or a
> different type which provides parallel port, but this could then cost you !

Those who wish to stay with legacy technology will have to get a hardware parallel port.

On laptops with a PCcard/PCMCIA port can use on of these:

http://www.google.com/products/catalog?q=pcmcia+parallel+port&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&um=1&ie=UTF-8&cid17887598221263787&ei=8_JITIOgGYb2swOJxYFJ&sa=X&oi=product_catalog_result&ct=result&resnum=3&vedDkQ8wIwAg#

A desktop could use a PCI parallel port:
http://www.buyextras.com/sybparpcicar.html?gclid=CMGrqbrCgKMCFSE1gwodnk6eaQ

Instead of wishing for a legacy solution, just get a USB jtag now and not fool with it any more.

don

thank you very much to all of you for your help. From the start i
thought that kind of connection would never work hehe, but i always
say that is better to ask, now i'm getting a JTAG USB device.

Thank you :D

--
You must check www.dragonflyluis.deviantart.com

Memfault State of IoT Report