JTAGICE mkII connection problems

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

Being new to AVR (However not a uC programming newbie), i decided to buy a ICE from atmel, hoped reliable hardware will help to quickstart my project.
However, somehow i get stuck in the first step.
I have ATmega162 on my selfmade board, where i soldered only the MCU, power supply and the JTAG pod so far.

When i press the "Connect to the selected Programmer" button right after starting AVRStudio(v.4.16), most time i can read the device signature. I get the following output:

    Setting device parameters.. OK!
    Entering programming mode.. OK!
    Reading signature .. 0x1E, 0x94, 0x04 .. OK!
    Leaving programming mode.. OK!

When i switch between tabs of the programmer dialog, sometimes i get the message

    Failed to identify target. Would you like to retry with external reset enabled?
But not always. I can read the fuses also.
When i start debugging, i get either a dialog which says "Could not connect to JTAGICE mkII", or the messages

    JTAGICE mkII: Failed to enter programming mode for reading bootloader fuses.
    Coordinator: Error when trying to make JTAGICE target device enter programming mode
    Coordinator: Error loading object file.

When i try the "Connect to the selected Programmer" button after this, i get the message

    JTAGICE mkII: USB connection skipped. Each instance of AVR Studio can only have one active USB device at a time.
I have to restart AVRStudio to remove that.

Could anyone give me some advice? Thank you.
Regards
Manuel

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

abrecht wrote:
I have ATmega162 on my selfmade board, where i soldered only the MCU, power supply and the JTAG pod so far.
Check out http://www.atmel.com/dyn/resourc... for minimum HW requirements, in particular the reset pin connection.

Stealing Proteus doesn't make you an engineer.

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

Thank you for the Hints. My power supply seems to be clean. The reset pin is connected to TRST of the JTAG pod. I wil add the recommended pullup resistor and blocking cap and try again.

By the way, do i an external clock source for JTAG debugging?

However, i wonder if the strange behavior of AVRStudio (no connection to JTAGICE after debugging attempt) can be explained by spikes on the reset line of the target?
Thanks, Manuel

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

abrecht (or anyone else who has a clue), did you solve your problem?
if yes, i'd be very interested in a solution.
a co-worker of mine has the same problem atm with a atmega2560. the weird thing is that he has another pcb with a 2560 which doesn't make any problems at all.
he claims not to have differences in teh JTAG-Connection on the two PCBs but perhaps there is be a "little big" thing one has to know that you already discovered...

greetings
jabba