New ICE won't read ATtiny85

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

Hello folks. I am new to this forum, and in desperate need of pointers.<

 

Some background: I worked with an old avrdragon and Atmel (now Microchip) Studio the past several months. The chips: ATtiny 85 and ATMega328, with some other other types on deck. The dragon gave up the ghost last week.

 

I will miss the HVP, but I bought a new ATMEL ICE from the Microchip direct order site last week, and it arrived in the mail today. Microchip Studio recognizes the new unit, and upgraded the firmware the first time I plugged it in.

 

Now for the hair-puller. In Device Programming, MC Studio can't read the ATtiny85 (the only chip I've tried). I know the chip is good, and runs at 8MHz. The complaint is something to the effect that the chip power is out-of-range, with a subsequent "expected 0x00; got 00xC0" (or some such). I'm pretty sure that's a catch-all error, which I've often seen in the past, and have generally worked through.

 

But I can't work through it in this case. I've extensively re-researched ISP wiring basics, compared this wiring to the dragon's setup, etc., approaching the problem with increasing degrees of neurosis and paranoia.

 

All to no avail! Please do not assume that I skipped the User Manual; that's not to say I haven't missed something, of course.

 

So, advice, please! It is a new unit and the chip is known to be good (I have a USBtiny and USBasp, and used them repeatedly during testing). Have I overlooked something? Should I complain to Microchip. One other note: my multimeter shows 0.791V between Vcc and GND on the ICE ISP pins; the 'reported voltage' of the chip in Device Programming is 0.2V; I'm not sure whether any of that is meaningful.

 

Thanks in advance. -- Tarmin D.

 

This topic has a solution.

Tarmin Dee
It has been noted that, all falls but not some, or other.

Last Edited: Tue. Feb 9, 2021 - 08:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sounds like the ATtiny85 might be in debugWire mode? Try to launch a debug session...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

What happens when you just try to read the target voltage and next the device signature?

 

Are you sure you have connected the cable to the AVR side and not to the SAM side?

Not connected the 6pin cable the wrong way around? ( that should become clear from reading the target voltage.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

TarminDee wrote:
The complaint is something to the effect that the chip power is out-of-range,
So just checking but you are powering the t85 separately? The Atmel-ICE does not provide power (it only senses the level to adjust for 3.3 or 5 V). I haven't used a Dragon in a long time but I think it maybe did provide target power? So I can see how you might be confused if the ICE doesn't do this.

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

TarminDee wrote:
The complaint is something to the effect...

Would be more useful to post the actual complaint: copy & paste if it's text, or screenshot if it's a GUI thing.

 

See Tip #1 in my signature, below, for how to post pictures & take screenshots:

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The ICE does not provide target power, so you must power the T85 externally for it to program!

The Dragon could be jumpered so it could power the target and the USBasp will power the target by default.

This is most likely the source of your problem.

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Wow.  You folks are great.  Look at the response, and in so short a time!

 

I am just starting to mull over the suggestions, and will report back soon.  I may begin by following up on what that psycho from South Park points out.

 

Thanks again, all!

 

=======================

 

And now, reporting back...

 

clawson and ki0bk were correct: I did not provide a power source to the ATtiny85, expecting the programmer to do that for me.  (I bought the dragon used; the previous owner must have set the jumper mentioned by ki0bk.)

 

On first read, I did wonder why the pin is labeled "VTG," and not "Vcc," in the ICE User Manual.  I should have read a little more into the accompanying text.  Oh well.

 

Again, thanks, all!

Tarmin Dee
It has been noted that, all falls but not some, or other.

Last Edited: Tue. Feb 9, 2021 - 09:07 PM