AS6 + JTAGICE3 - Unable to enter programming mode (JTAG/ISP)

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

Hey there,

this is my first post here and i hope to get some help of you guys with this absolutely annoying problem.

I've just bought a JTAGICE3 from Atmel to Debug and Flash my ATmegas.
I installed AVR Studio 6 on a Windows 8 x64 machine (also tried the same on a Windows Vista) - the programmer itself is recognized by AS perfectly but it can't communicate with the mega.

If I try to read the signature or fuses, I get:

- in JTAG mode: "No JTAG devices detected. Debugger command Activate physical failed., ModuleName: TCF (TCF command: Device:startSession failed.)"

- in ISP mode: "Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00, ModuleName: TCF (TCF command: Device:startSession failed.)"

I tried this with ATmega644, ATmega16 - all with factory settings, so JTAG should be enabled. I also tried several different clock settings (125 kHZ, lower, higher, ..).

Maybe you are familiar with this tricky problem or can help me how to fix this.
Thanks for your efforts.

greetz,
futuretec

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

I'll start off with the silly questions, at least the thread gets a bump. :-)

Did you use the JTAG and ISP adaptors which come with JTAGICE3?

What kind of boards are you using the programmer with?

Do these boards work with another programmer, if you have any?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Not sure if I should post here or make a new thread...
however I am having a similar problem.

I just bought a jtagice3 and an arduino uno. Both are brand new.

I pluged the SPI adaptor from the jtagice3 into the uno board, with care to make sure everything was correctly orientated.

I opened AVR Studio 5 and tried to read the chip signature with no luck. However the voltage read correctly, and I was able to see that the programmer was able to reset the chip. The arduino comes preloaded with a blinking LED code.

I then decided to update to AVR Studio 6 and update the firmware on the Jtagice3 to the latest. This didn't help any.

I then downloaded codevision and had the same trouble with that.

I then tried again using the 'Squid' cable, carefully connecting the pins. This had the same results...

I don't yet have any microcontrollers that I can test the JTAG interface with.

Do you have any suggestions on what I should look at or try next?

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

Did you select ISP programming mode when you connected the JTAG-ICE3? The UNO boards have a capacitor on /RESET which will may cause some issues depending on the protocol, but ISP for programming only should be largely unaffected.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

The only option in the drop down is ISP. Tried slower clocks speeds aswell.

Successfully uploaded code using the arduino software just now aswell.

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

Quote:
The only option in the drop down is ISP
I usually run the ISP at 125KHz or close even though 250KHz should work.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Hrm - perhaps the cap on /RESET between the primary and secondary processor is affecting the JTAG-ICE3 more than I thought. Can you try holding the USB AVR (the one near the USB connector) in reset while trying to connect to the ATMEGA328 with the JTAG? That will float the other end of the cap and hopefully negate its effects.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Hey Dean,

Thanks for the input! I did as you said and grounded the reset pin of the USB micro. I also set the ISP at 125KHz as JS described. However didn't help any...

I then read on the arduino site about the reset connection;

Quote:
The Uno contains a trace that can be cut to disable the auto-reset. The pads on either side of the trace can be soldered together to re-enable it. It's labeled "RESET-EN". You may also be able to disable the auto-reset by connecting a 110 ohm resistor from 5V to the reset line; see this forum thread for details.

So I cut the track and then verified the cut with a DMM. Still no luck however.

Going to try make a parallel port -> ISP cable and see if that works...

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

Just made the hackiest parallel port programmer and I could read the chip sig.

However I had to manually hold down the reset button. There is a led connected to pin 13. when I hold reset this led is lit. however when I hold reset with the JTAGICE3 connected, the led is unlit.

I don't know if that means anything or not?

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

Read the fuse bits using the parallel port

Does any of that look like it might cause a problem?

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

Hi,

I have same problem,i am also not able to read device signature.
Please note that I am using RCB256RFR2 and AS6.1.
Problem is that when i program fuse bit at that time unfortunately both bit of "JTAGEN and SPIEN" are disable so how can i enable again.

Thanx and regards
Kalpesh

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

Quote:

Problem is that when i program fuse bit at that time unfortunately both bit of "JTAGEN and SPIEN" are disable

Are you sure you are not just reading the fuses wrong? Remember that 0=active and 1=disabled. In fact if both SPIEN and JTAGEN were really disabled you wouldn't have been able to read the fuses anyway!

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

Thnx clawson for kind reply.

But situation is like when i wrongly program fuse bit at that time i had set both bit to HIGH.

So when i try to program it with using ISP then i am not able to read device signature.

By the way once i had read that if both bit are disable then you can use High Voltage Programming, Actually what is that i just don't know about that.

Can you explain it.

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

You simply cannot change SPIEN by ISP (only by JTAG) so you cannot have switched off ISP if you only used ISP.

Quote:

By the way once i had read that if both bit are disable then you can use High Voltage Programming, Actually what is that i just don't know about that.

While it shouldn't be necessary there are a special type of programmer you can get that applies +12Volts to the _Reset pin and uses about 20 wires to connect to the AVR. Because of the +12V you usually need to lift the chip from the circuit it is in and program it separately.