Inexpensive sophisticated JTAG debugging with WinAVR?

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

I've been using the J-Link JTAG with IAR on ARM7's. It has unlimited flash breakpoints, among other nice features. Is there something hobby-inexepensive that's close to J-Link/IAR's C-Spy?

(yeah, I know, inexpensive and sophisticated are XOR'd)

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

Wiggler clones?

Guillem.
"Common sense is the least common of the senses" Anonymous.

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

There's a JTAG design of mine (including PCB) in the LPC2000 Yahoo Group Files section. It's compatible with the Wiggler, but can be clocked a lot faster because of the better PCB layout.

Leon

Leon Heller G1HSM

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

You are asking if there is a cheap debugger for ARM on an AVR forum, in the AVR section? Do you mean is there an equivalent for AVR what Jlink is for ARM?

For ARM, go on ebay and look for "ulink clone" or "nlink". ulink is the official ARM debugger for keil, nlink is the compatible clone.

For AVR, your choices are the dragon and ICE MK2.

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

How good does JTAG get on AVRs with WinAVR/AVR Studio, without IAR/AVR or other costly one? What device? I do have this
http://www.nkcelectronics.com/av...
for AVR. Works great for downloading to flash, but kinda crude for breakpointing.

Atmel ICE MKII is $300 or so. I've read that some Asian clones are out there (ulink?) but perhaps don't work.

I suppose this is the answer with Dragon
http://support.atmel.no/knowledg...

right?

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

Quote:

How good does JTAG get on AVRs with WinAVR/AVR Studio, without IAR/AVR or other costly one? What device? I do have this
http://www.nkcelectronics.com/av... ... r-kit.html
for AVR. Works great for downloading to flash, but kinda crude for breakpointing.

Well for the limited number of AVRs listed that device will work identically as the $299 JTAGICEmkII does on all the other devices. All you get by paying more is access to more target AVRs but the debugging experience will be completely identical. To be honest I don't understand your "crude" comment. How is JTAG debugging on AVRs any more "crude" than it is on ARMs or MIPS or PowerPC or whatever else your poison happens to be?

(BTW a current offer has the JTAGICEmkII for $149 rather than $299. Also the $50 Dragon is, in theory, limited to all the AVRs below 64K but someone has hacked this so in theory you could use it to debug the entire range of AVRs that the JTAGICEmkII can)

Cliff

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

Thanks for the top. Who hs the MK-II for $150?

"crude" meant the smooth and polished integration with the IDE and debugger. I'm really impressed with IAR's capability in that as I work on ARM stuff. I had once tried JTAG breakpoint debugging on AVR and perhaps too quickly reached the conclusion that it was not very good.

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

I had been working with AVR's, IAR and GCC+AVRStudio with JTAG MkI, my JTAG MkI clone and JTAG MkII. For hardware and low level stuff (register settings, bit twidling, and such) I prefer AVRStudio by far, and MkII does a pretty good job here, where manually you can set/clear all registers and bits, and even do all peripheral initialization 'by hand'.

On the other hand, IAR excel if you use an RTOS, or when you debug your application where HW is already Ok.

In any case, breakpoints are quite transparent and more than enough. IMHO, when one is used to develop large applications with JTAG, it is hard to go back and work without any, although JTAG is not the only solution neither the definitive tool.

I strongly recommend you to test one of them, and post back your opinions after some KB debugged.

Have fun.

Guillem.
"Common sense is the least common of the senses" Anonymous.

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

BTW, I forget to comment that the only difference from any IDE between MkI and MkII are the supported AVR's. If you work with M16-32-64-128, then you will be OK with MkI, otherwise, MkII is the best choice (I would recommend to buy the later if you don't worry about some money).

Guillem.
"Common sense is the least common of the senses" Anonymous.

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

stevech wrote:
Who has the MK-II for $150?

Arrow North America: http://www.arrownac.com/manufact...

You can order online and and pay with credit card, evenas a private person. They ship Worldwide, although the UPS shipping can be expensive.
I asked Arow about a cheaper shipping method and the sales peron E-mailed me that they are currently negotiating a new deal with DHL, which should make the shipping here to Europe cheape than the curent UPS shipping.

Quote:
Start Designing Smarter Today!

Two popular AVR development boards are available at half the usual price:

STK600 Evaluation Kit - for AVR and AVR32 Devices
ATSTK600 - PROMO Retail price price - $199. Your price - $99.50

    • STK600 Adapter for SOIC Devices - AVR and AVR32 Starter Kit • Low-Cost On-Chip Emulator for AVR DEV
Low-Cost On-Chip Emulator for AVR and AVR32
ATJTAGICE2 - PROMO
Retail price - $299. Your price - $149.50

The Arrow promotion offers on both STK600 and JTAGICE mkII are discussed here: https://www.avrfreaks.net/index.p...

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

AndersAnd wrote:
Low-Cost On-Chip Emulator for AVR and AVR32
ATJTAGICE2 - PROMO
Retail price - $299. Your price - $149.50
15 left of the STK600 and the JTAG ICE2 is out of stock. I wonder if they will restock at the same price or simply end the deal.

--Mike

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

They are old non-RoHS stock and they are flogging them off cheap to get rid of them. They can't be legally imported to the EU, but I can't see Customs impounding single units that people have purchased.

Leon

Leon Heller G1HSM

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

The JTAGICE mkII's shipped from Arrow for this offer includes the Atmel AVR Technical Library CD-ROM dated December 2008, so they can't be that old.
There's also a Lead Free symbol on the back of the packaging.

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

They were non-RoHS when I looked at the web site.

Leon

Leon Heller G1HSM

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

I ordered one and received it last week. It is the non-RoHS certified unit, though it is marked as Pb-free, it doesn't have the RoHS compliance mark so there must be some other microgram of something that prevented certification. Depending on how the equipment is categorized and labeled, it may be OK to import under usage exclusion (not mass-market consumer product) but it is my understanding that those loopholes are fewer than they used to be.

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

mikeperks wrote:
AndersAnd wrote:
Low-Cost On-Chip Emulator for AVR and AVR32
ATJTAGICE2 - PROMO
Retail price - $299. Your price - $149.50
15 left of the STK600 and the JTAG ICE2 is out of stock. I wonder if they will restock at the same price or simply end the deal.

The JTAGICE mk II was sold out from Arrow a short while ago. But they they have now restocked at the same promo price (currently 28 units in stock).