Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 09, 2016, 08:41:36 08:41


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 7007 times)
0 Members and 1 Guest are viewing this topic.
smartcat004
Newbie
*
 Muted
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 27


« on: September 14, 2008, 06:38:42 06: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: 130

Thank You
-Given: 44
-Receive: 19


« Reply #1 on: September 14, 2008, 07:36:28 07: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: 64

Thank You
-Given: 24
-Receive: 5


« Reply #2 on: October 04, 2008, 05:42:54 17: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
*
 Muted
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 27


« Reply #3 on: October 06, 2008, 05:25:40 17: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, 05:34:16 17:34 by smartcat004 » Logged
shishishi
Newbie
*
Offline Offline

Posts: 28

Thank You
-Given: 3
-Receive: 57


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

USE JTAGICE DEBUG
Logged
edaudo
Junior Member
**
Offline Offline

Posts: 46

Thank You
-Given: 53
-Receive: 90


« Reply #5 on: October 15, 2008, 05:10:30 17: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