Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: JTAG vs DebugWire

2008-09-13 by Graham Davies

--- In AVR-Chat@yahoogroups.com, "avrx123456789" <AvrX@...> wrote:
>
> Can someone comment on which is better
> for debugging: JTAG or DebugWire?

I don't think either is "better".  People have pointed out that once 
you've picked your device you don't have a choice.  You may also have a 
personal preference.  I prefer JTAG, because it's simpler to use.  You 
can do everything through JTAG.  You can even re-program fuses if 
you've messed up the clock selection and the device clock is not 
running.  With debugWIRE, you have to enable it via ISP and go back to 
ISP to change fuses and generally mess around more.  On the other hand, 
JTAG uses up four device pins.  So, for hacking around, I'd recommend 
you get a JTAG device, such as the ATmega16 (which works with the old 
JTAG interface and its clones).  For products, where the cost per unit 
is more important, a debugWIRE device will often be better.

Graham.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.