Using JTAG, mkII and Mega32

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

Hi.

I making a design with a mega32. I have a mkII but I have only used that with debugWire on mega168.

I just want to ask if it is correct that I need to connect the following lines to be able to use the debugger:
+VCC
TDI
TDO
TMS
TCK
GND

If I am right I can use the SPI lines if I want to use a seriel SPI programmer

The reset wire does not need to be reachable from the mkII but from the SPI programmer.

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

You can read about it in the help that comes with AVRStudio, "JTAGICE mkII User's Guide". The reset line is optional but could be useful to have:

Quote:
nSRST is used to control and monitor the target reset line. This is however not necessary for correct emulation. But if the application code sets the JTD bit in the MCUCSR, the JTAG Interface will be disabled. To enable the JTAGICE mkII to reprogram the target AVR, it will need to have control of the Reset Pin.

Here is one example (mega32 is the same):
http://www.olimex.com/dev/images/avr-m16-sch.gif

/Lars

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

Thanks. Good note about the reset line, I have missed that. By why do they use AREF and not VCC????

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.