Cannot program ATtiny13A

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

Hello. I've tried programming ATtiny13A with USBasp programmer and this programming board. I've used this tutorial. My program code: https://pastebin.com/e7A2ejsV

 

However, when programming, avrdude says:

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.

The command I use to program is:

avrdude -p attiny13 -c usbasp -U flash:w:main.hex:i -P usb

After googling for some time, I've realised I may have "locked" the AVR. I didn't pay attention to the output after first programming though. Is that possible I have locked the AVR if I didn't do anything related to fuses? Also, I've used this setup to program ATmega328P some time ago and it worked just fine.

And yes, I've used slow mode for the USBasp.

This topic has a solution.
Last Edited: Fri. Oct 16, 2020 - 09:56 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome to AVRFreaks!

 

Well, until the signature can be read, nothing will work.

Since you have been successful before on another AVR, we will assume your connections are ok, power is on the board.

One possibility is the chip is in backwards.  If you can take a picture of your hardware setup and post it here so we can see it.

I have not seen that board before, so forgive us asking some fundamental questions. 

Do you have a voltmeter, can you use it to verify the chip has power at its vcc/gnd pins.

Has the tiny13a ever been programmed before? 

Do you have an Arduino?  If not, they are handy to have one.

Can you try your setup with another chip, you said it worked with a mega328p, can you try it again to see if you can read it's signature?

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

It is possible that the AVRdude program recognizes the difference in signature between the atTiny13 and the atTiny13A.  Try:

    avrdude -p attiny13a -c usbasp -U flash:w:main.hex:i -P usb

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

Simonetta wrote:

It is possible that the AVRdude program recognizes the difference in signature between the atTiny13 and the atTiny13A.  Try:

    avrdude -p attiny13a -c usbasp -U flash:w:main.hex:i -P usb

 

It seems like attiny13a isn't a valid option. It says `AVR Part "attiny13a" not found.`. Thanks for the answer!

 

ki0bk wrote:

Welcome to AVRFreaks!

 

Well, until the signature can be read, nothing will work.

Since you have been successful before on another AVR, we will assume your connections are ok, power is on the board.

One possibility is the chip is in backwards.  If you can take a picture of your hardware setup and post it here so we can see it.

I have not seen that board before, so forgive us asking some fundamental questions. 

Do you have a voltmeter, can you use it to verify the chip has power at its vcc/gnd pins.

Has the tiny13a ever been programmed before? 

Do you have an Arduino?  If not, they are handy to have one.

Can you try your setup with another chip, you said it worked with a mega328p, can you try it again to see if you can read it's signature?

 

Jim

 

 

Just checked with the voltmeter. Indeed, turned out the chip had no power. I've provided 5V power and the programming was successful. Thank you!