Can't make contact with mega32 and JTAGICE mkII

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

Hi.

I have searched the forum for this but I am stil not sure. Should it be possible to make contact with a mega32 through JTAG with the default fuse settings in the mega32?

That means it will run on the internal RC oscillator and the JTAG interface is enabled.

I can make no contact what so ever with JTAG. "Failed to identify target"

I use the 6 pin interface, without reset pin. I also have measured on the TDO pin during connection and there is no respons from the mega32.

I have checked the power.

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

Is this a new board or has it functioned previously?

Keep it simple it will not bite as hard

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

This is a new board. It's just that I have not used the JTAG and mega32 before.

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

Reading the datasheet again I now see that the OCDEN fuse is not set by default. (On Chip Debug ENabel). I wans't aware of this fuse bit, only JTAGEN that is set by default. I will try this tomorrow.

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

BUT, this is from mktII help file:

"The JTAGICE mkII will automatically program the OCD fuse if it is disabled."

Still, I think that the reset pin is needed if the fuse bits shall be programmed. By the way, is the reset pin needed to be able to do any kind of programming (including downloading program)? My device is empty so the emulator must of course start with downloading the program.

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

OK, I can give some feedback from my own questions to anyone who might be interested. I finally found the problem: Bad connection! See my tracking of the problem below:

JTAG: No connection possible.
JTAG + Reset: No connection possible.
SPI: (To enable JTAG fuse) Says fuse enbled but JTAG still doesn't work

SPI from ICCAVR: Can read fuse bits.Result: 0x99E1 (same as default). OCDEN have NOT been programmed by the mktII. I try to program the OCDEN bit using this interface: Success.

JTAG after OCDEN programmed: Still dead.
Checked the soldering of the avr in the microscope, two connections missing.
After fixen them, everything works. And reset is NOT needed for downloading program for emulation!

By the way, the 44 pin MLF of the mega32 is much more difficult to solder than the 32 pin MLF of the mega168.

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