Best JTAG for Mega128

Go To Last Post
21 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can someone offer tips on which would be the best JTAG tool for a Mega128? A Dragon? Or one of the JTAG ICE clones?

Basically, I am looking to put together is a AVR development system.

Budget for hardware: $100 or less.

The Futurlec ET-AVR Stamp board http://www.futurlec.com/ET-AVR_Stamp_Board.shtml fits the bill for hardware.

The main question I have is does the Dragon really support JTAG for the 128? The Olimex JTAG ICE clone does and they are the same price. Clarification would be appreciated.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, the Dragon won't work. It will only JTAG/dW AVRs with less than or equal to 32KB of flash. You'll have to either purchase the JTAG-MKII or, depending on compatibility, a JTAGMKI/JTAGMKI Clone.

- Dean twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JTAG MK1 clone or homemade ;) will work for Mega 128. However don't expect anything coming soon from Futurelec...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A Manual for a homemade JTAG ICE can be found here:
http://www.siwawi.arubi.uni-kl.de/avr_projects/evertool/index.html

Regards
Sebastian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's a JTAGICE with ISP for $50 + $10 shipping
http://cgi.ebay.com/Atmel-JTAG-I...

I don't have any experience with these, perhaps someone may know something about them.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A mark 1 JTAGICE clone can also be made from a butterfly board or STK500 If you have either of those handy.

If the Mega128 is running at 5Volts you will need some additional level shifting chips at the Butterfly can only do 3.3volts.

With the STK500 you need a Mega16 or Mega163 which comes with the STK.

Plans for a Butterfly JTAG Ice clone are in the academy, although Butterflys seem to be rare this year. A MK1 clone should not cost more than $35USD.

-julieP

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

S-Sohn wrote:
A Manual for a homemade JTAG ICE can be found here:
http://www.siwawi.arubi.uni-kl.de/avr_projects/evertool/index.html

Regards
Sebastian

Dear Sbastian,
Have you build AVR JTAGICE from http://www.siwawi.arubi.uni-kl.d..., I have build it, but not all of it functions works, I cannot do debugging, but only able to do programming using this JTAG.

Siswanto
siswanto@intisar.co.id

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

siswanto wrote:
S-Sohn wrote:
A Manual for a homemade JTAG ICE can be found here:
http://www.siwawi.arubi.uni-kl.de/avr_projects/evertool/index.html

Regards
Sebastian

Dear Sbastian,
Have you build AVR JTAGICE from http://www.siwawi.arubi.uni-kl.d..., I have build it, but not all of it functions works, I cannot do debugging, but only able to do programming using this JTAG.

Siswanto
siswanto@intisar.co.id

No, I haven't finished it until now. But I'm working on it.
I have ordered some devices, when they arrive I can start soldering.
The manual for programming the evertool is long and seems a little bit tricky.
Where were your difficulties?
When I have finished the tool I will tell you my experiences.

At the end of the evertool page you find the E-Mail address of the developer.
A few days ago I send him a mail and I got response from him the same day.
Maybe he knows why your JTAG won't do debugging.

Regards
Sebastian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I cannot do debugging

Which chip are you using? Have turned on OCDEN and JTAGEN in the chip before using it?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've published plans for a JTAG programmer/debugger that doubles as an ISP programmer:
http://www.floppyspongeonline.com/automation/isojtagisp/isojtagisp.php
It's a little more complex than some other plans because it has usb and opto-isolation for computer/target protection. The catch with building your own is obviously that you need some way to program the chip that's on the programmer in the first place. I offer pre-programmed chips and completely build units for sale, the details are on the page.

zoomcityzoom that unit on ebay is interesting, in that it also supports ISP as well as JTAG, i wonder if they've ripped off my firmware, as I've never seen ISP combined on the JTAG unit the way I did it before, Evertool combines them but uses seperate hardware for the JTAG and ISP sections.

If you want plans for a more simple JTAG programmer the original BOOTICE plans (not mine, called avr_jtag.zip ) are mirrored on my old programmer page:
http://www.floppyspongeonline.com/automation/isojtag/isojtag.php
but again, you still need to program the chip for the programmer.

Electronics Design and other funky stuff -
alelec Engineering
http://www.alelec.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
it has usb and opto-isolation for computer/target protection

I don't see how you are measuring the target's voltage with the optos, I'm guessing that you pretend it is always 5V??

Quote:
i wonder if they've ripped off my firmware

ps have you written your own JTAG code or are you using Atmel's?? ;)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah I pretend, which is nothing new. Most clones I've seen don't measure the target voltage, evertool is one of the few that does, but I've never had any issues from not measuring it. If the taget's not powered up you get an error message in avr studio that says it's found the programmer but the target isn't responding, at which point you can power up the target and hit the retry button and it recovers quite cleanly.

Electronics Design and other funky stuff -
alelec Engineering
http://www.alelec.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh and yeah, I'm using atmel's jtag firmware (from whichever avr studio you want). I just wrote the bootloader/boot-selector to choose at power-up betwen the loaded jtag firmware and the ISP firmware which I ported from the AVR910 code and updated with as many new device codes as i could.
I thought it was a quote novel concept to dual-boot an atmel ;-)

Electronics Design and other funky stuff -
alelec Engineering
http://www.alelec.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, I haven't finished it until now. But I'm working on it.
I have ordered some devices, when they arrive I can start soldering.
The manual for programming the evertool is long and seems a little bit tricky.
Where were your difficulties?
When I have finished the tool I will tell you my experiences.

At the end of the evertool page you find the E-Mail address of the developer.
A few days ago I send him a mail and I got response from him the same day.
Maybe he knows why your JTAG won't do debugging.

Regards
Sebastian

For Sebastian,
I'm looking forward good news from You.

Regarding my experience with evertool AVR JTAGICE
1.I use ATMEGA16 for AVR JTAGICE chipset
2.I use ATMEGA16 for target board
3.I can do anything with my homemade AVR JTAGICE, like get target board voltage, flash programming to target board, get fuses status, etc. But a while debugging stage, eppear message "error reading memory :IO Address:0 size:64" and "Error rading REGISTER address 0 size 32"
FYI, the OCDEN and JTAGEN already turned on.

Siswanto
siswanto@intisar.co.id

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

siswanto,

I have not forget you but I'm building that tool in my freetime,so it takes some time.
Until now I have finished 2/3 of soldering. Maybe I can tell you more after the weekend.

Regards
Sebastian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

siswanto,
I have finishe building the Evertool. But it won't work.
So I replied a new topic:
https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=244456#244456

regards
Sebastian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

Can any one tell me what is the difference between JTAG ICE and JTAG ICE mkII.

Regards
PUB

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JTAGICE mkII can program and debug all models of AVRs that have a JTAG port.
The original JTAGICE is limited to only working with the following devices:
ATmega16(regular or L), ATmega162(regular or L), ATmega169(regular or L or V), ATmega32(regular or L), ATmega323(regular or L), ATmega64(regular or L), ATmega128(regular or L).

JTAGICE mkII can debug all models of AVRs that have a debugWire interface.
The original JTAGICE cannot work with any debugWire parts.

JTAGICE mkII can debug the new AVR32 core, as well as the older 8-bit MCUs.
The original JTAGICE cannot work with any AVR32-based devices.

JTAGICE mkII can communicate with a PC via either a 115200bps serial connection, or through a faster native USB connection.
The original JTAGICE only has an RS232 interface with the host PC. (But USB->RS232 adaptors should work.)

JTAGICE mkII can also act as a general ISP programmer, potentially of all AVRs with the 6-pin ISP interface.
The original JTAGICE doesn't have this feature.

The original JTAGICE somehow had its schematics leaked to the public and low-cost clones have been devised by several individuals.
There are no known clones of the JTAGICE mkII.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi lfmorrison,
Referring to point
"JTAGICE mkII can also act as a general ISP programmer, potentially of all AVRs with the 6-pin ISP interface.
The original JTAGICE doesn't have this feature."

Just the JTAG signals are not sufficient for In System Programming. Do we need to expose some other pins(ISP interface pins).....

Regards
Bhaskar

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

YOWCH! The JTAGICE MKII is 300 dollars!

I certainly can't afford that one. I am having great results with the Ecros ICECube. I think it is a MKI clone and works perfectly for my ATMega128 programming jobs.

I guess I will not be doing any programming of the many devices it does not support. At least until there is a cloke of the MKII.

-Tony

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bhaskar wrote:
Hi lfmorrison,
Referring to point
"JTAGICE mkII can also act as a general ISP programmer, potentially of all AVRs with the 6-pin ISP interface.
The original JTAGICE doesn't have this feature."

Just the JTAG signals are not sufficient for In System Programming. Do we need to expose some other pins(ISP interface pins).....

Regards
Bhaskar


The JTAGICE mkII comes with a squid cable; refer to the user's manual in AVR Studio's help files to find out which of the wires on the squid cable need to be hooked up to gain access to SPI functionality. (You should need 6 wires.)

The ISP interface pins differ from one AVR part to another. On many devices, they actually use the same pins as the AVR's actual SPI port (MOSI, MISO, SCK), with the AVR wired as the slave.

On several other devices, different pins are used. For example, the USART0 pins are substituted for the MOSI and MISO pins on an ATmega128 and its pin-compatible subfamily.

The specific pins used on any individual AVR are documented in each part's datasheet.

In addition, an ISP programmer must be connected to the AVR's /RESET pin, as well as to VCC and GND.