Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 10:36:32 10:36


Login with username, password and session length


Pages: [1]
Print
Author Topic: Debugging ATMega(32,64 or 128) MCUs - JTAG or ISP 6 pin ?  (Read 9474 times)
0 Members and 1 Guest are viewing this topic.
smartcat004
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 27


« on: September 14, 2008, 05:38:42 05:38 »

Is there anyway I can do debugging(with breakpoints/single stepping) with the ATMEL standard ISP 6 pin connector ?
Or is a JTAG the only way to do  debugging on these MCUs ? 

If any good advise/experience on ATMegaXX debugging please share.

Appreciate also if anyone can advise what is required for doing the one wire debugging.
 

Logged
microkid
Active Member
***
Offline Offline

Posts: 129

Thank You
-Given: 45
-Receive: 23


« Reply #1 on: September 14, 2008, 06:36:28 06:36 »

Debugging can only done by jtag pins and not possible with isp pins.

Dragon is required to one wire debugging.

MicroKid

Logged

Never Never Never giveup
chyun3
Junior Member
**
Offline Offline

Posts: 65

Thank You
-Given: 43
-Receive: 6


« Reply #2 on: October 04, 2008, 04:42:54 16:42 »

The one wire debugging is depend on MCU.....ex:ATMega48, ATtiny461, ATtiny44,..these are the MCU that can perform one wire debugging...however before can perform one wire debug, we must use 6pin ISP to program the DWEN fuse...

For ATMega32 it only support JTAG(8 pins) debugging....
Logged
smartcat004
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 27


« Reply #3 on: October 06, 2008, 04:25:40 16:25 »

I just bought one dragon from Farnell.
Has JTAG / ISP / Parallel programming / dW  built in a small card

Unlike the STK500 which comes with bundles of cable assemblies, this Dragon comes with no USB cables, JTAG cables etc ! Need to provide own cables. 

Just a dull printed paper box wrapping the pcb board ... thats all !

Not complaining .... but rather impressed with the cost savings effort to this extent.

-- But most importantly it performs great for my AtMega32L

One more thing to mention is the Dragon only supports up to the 32K sized chips
. Probably that limitation is deliberate.



« Last Edit: October 06, 2008, 04:34:16 16:34 by smartcat004 » Logged
shishishi
Newbie
*
Offline Offline

Posts: 28

Thank You
-Given: 3
-Receive: 57


« Reply #4 on: October 11, 2008, 06:26:17 06:26 »

USE JTAGICE DEBUG
Logged
edaudo
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 55
-Receive: 95


« Reply #5 on: October 15, 2008, 04:10:30 16:10 »

ATMega32 ... 128 only use the JTAG interface for debugging. But you need the 6-pin ISP too, to first set the JTAG enable fuse otherwise you will not be able to connect to the MCU.

The JTAG ICE is the best choice if you can aford it. The actual version is MkII (serial+USB), the older MkI (serial) does not support DebugWire for smaller chips but you sometimes can get it pretty cheap at ebay.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC