Author Topic: ATTiny85 invalid device signature: 0x000000 on first use.  (Read 11238 times)

0 Members and 1 Guest are viewing this topic.

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4046
  • Country: gb
ATTiny85 invalid device signature: 0x000000 on first use.
« on: January 19, 2018, 08:02:15 am »
So I bought 5 ATTiny85's from RS.  The first one worked fine.  Last night I went to use another and found that out of the 4 remaining ones, 2 were invalid device signature, 2 worked fine.

I'm hoping it's just fuse bits, but I still need to buy or build an HV programmer to find out.

How common is this?  Is it possible they have mangled fuse bits from factory?  Is it possibly they have got ESD damage by me or in storage transit?

At £1.03 part of me wonders if it's worth the hassle of the HV programmer, but if they are going to be 3 out of 5 working the price goes up to about £1.66 per unit.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline soubitos

  • Frequent Contributor
  • **
  • Posts: 352
  • Country: gr
    • I sell on Tindie
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #1 on: January 19, 2018, 08:18:57 am »
I am building an Attiny Fuse Reset Shield these days which is using an Atmega8A-AU and onboard 12V source. Its been two days now i struggle to program it with no luck... i keep getting wrong signature 0x000000 messages... anybidea what i can do to fix that? I have 10 atmega8's but dont feel like soldering them all to see if they are the culprit but i might just do it if i need to
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3024
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #2 on: January 19, 2018, 08:35:34 am »
If they came from RS, then I would not expect them to be bad, have you tried slowing down your programmer bitclock in case the tiny is running slower than expected, -B<number> option to avrdude (I forget what numbers are valid, 1-10 higher slower I think), provided your programmer supports it.

You could try injecting a  square wave of say 8MHz (into CLKI), just in case it's fuse is set to require external xtal/clock.
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4046
  • Country: gb
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #3 on: January 19, 2018, 09:49:42 am »
If they came from RS, then I would not expect them to be bad, have you tried slowing down your programmer bitclock in case the tiny is running slower than expected, -B<number> option to avrdude (I forget what numbers are valid, 1-10 higher slower I think), provided your programmer supports it.

You could try injecting a  square wave of say 8MHz (into CLKI), just in case it's fuse is set to require external xtal/clock.

I'm using "Arduinno as ISP" to program them with an UNO.  I got a USBAsp, but when it failed on the first chip I blamed the programmer, but the UNO got invalid device sig.  Tried a second chip same thing.  3rd and 4th chips worked fine without any change to programmer.

I tried one of the dead ones with an external 16Mhz xtal in case it had come with external clock settings, but no joy.

I'll diagnose them tonight to double check each with the UNO as ISP and the USBAsp just in case.

I'm in no rush for more, I only need 1 and have two working.  I also have 4 Mega328p's if I get stuck, but it would be a waste as my project only needs one pin.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline georges80

  • Frequent Contributor
  • **
  • Posts: 912
  • Country: us
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #4 on: January 19, 2018, 04:24:29 pm »
I've used ten's of 1000's of tiny85 parts over the years and have NEVER had a programming failure that wasn't due to something external such as programming cable, PCB/assembly shorts, etc. These parts all sourced through digikey or mouser and I would assume RS parts are similarly authentic and handled through the delivery chain in an ESD safe manner.

Make sure your programming clock speed is below 1/4 of the default clock speed for the tiny85, so below 250kHz. Use 125kHz to be safe.

cheers,
george.
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4046
  • Country: gb
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #5 on: January 19, 2018, 04:38:33 pm »
Make sure your programming clock speed is below 1/4 of the default clock speed for the tiny85, so below 250kHz. Use 125kHz to be safe.

I'm not sure how to change that in the Arduino as ISP setup, but I'll look into it.  There is only one clock setting and that is what get's set in the fuses when you burn the bootloader.

It might be in the Arduino ISP sketch, I'll check.

The odd thing is, I was pulling chips out of the breadboard and inserting another and hitting "Burn bootloader", zero other changes, some worked some didn't.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3024
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #6 on: January 19, 2018, 10:06:47 pm »
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline phil from seattle

  • Super Contributor
  • ***
  • Posts: 1029
  • Country: us
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #7 on: January 19, 2018, 10:19:10 pm »
I've mostly seen this problem when the 85 was set to use debugwire. Then you need a debugwire programmer (ICE in my case) to set  the chip back to ISP.  Think it's likely not to be your problem.  I did brick one 85 when using the ArduinoISP programmer.  Haven't looked for it to check out (but probably binned it).
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4046
  • Country: gb
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #8 on: February 05, 2018, 10:47:14 am »
Update to tie this off.

I reset them all with an HV programmer and having tested a random one it programs fine.

Not sure what Fuse state they arrived in or if they got corrupted in storage transit, but it seems they (having only tested one mind) work.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline cowasaki

  • Frequent Contributor
  • **
  • Posts: 605
  • Country: gb
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #9 on: February 05, 2018, 11:12:29 am »
I buy a lot of Arduinos ICs of various types including ICs that are not normally included in the IDE such as the 664 & 1284.  Having a proper ICSP and being able to re-program fuses and boot loaders makes life much easier.  It also allows you to program without a boot loader to gain that little extra space.  I find the AVR ICSP MkII ideal and at about £15 it's not worth messing about.  There are Chinese clones for about £9.
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4046
  • Country: gb
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #10 on: February 05, 2018, 11:25:53 am »
The trouble with that is, if the fuses are in a wonky state you can't actually ISP program the chip or set the fuses.

The only way is to use a 12V programmer.

I have found my USBAsp works 9 times out of ten.  Either that or an UNO or Nano, although the Nano is a bit weird as I don't believe it duplicates it's ISP pins onto D11,12,13 like the UNO.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline agehall

  • Frequent Contributor
  • **
  • Posts: 383
  • Country: se
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #11 on: February 05, 2018, 03:41:27 pm »
Are you using avrdude to program the chip and if so, have you tried adding something like -B 100 to the command line?
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4046
  • Country: gb
Re: ATTiny85 invalid device signature: 0x000000 on first use.
« Reply #12 on: February 05, 2018, 03:51:54 pm »
Are you using avrdude to program the chip and if so, have you tried adding something like -B 100 to the command line?

They are fixed now.  They all had wonky fuse bits.  Either external source or some unreasonable value for the internal clock that prevented programming via normal means.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf