Upload to ATtiny25 with Error: invalid device signature

Hi guys, I'm trying to upload firmware to a ATtiny25 SSU through a USBasp from a macbook , and get the error "Error: invalid device signature".

This is my wiring:


I'm following the recipe here: programming-AVR-with-USBASP hosted at ImgBB โ€” ImgBB

The command I'm using is below with its output:

I tried a thousand times and had no clue, please help! Thanks!

I'm using a type-c to USB converter, the macbook seems able to detect the USBasp:

And also my whole setup below:

Looks like you got all connections correctly, but i recommend you verify them with a Digital Multimeter (DMM)
The device signature comes back as 0, which usually is a sign of a bad connection somewhere.

Avrdude does not seem to be able to set the clock speed and reports that as an error first.

btw please do not post pictures of the output but rather copy and put in code tags, so it can be easily referenced by us. Firstly you should try and burn the bootloader, but since the device signature comes back as '0' that probably won't be successful. The possibility exists that the fuses are set for an external clock. Where did you get the ATtiny from ?

You can try to upload sketch into ATtiny25/45/85 using Arduino as ISP Programmer by following the steps of the attached file.
ProgrammingATtiny85.pdf (242.4 KB)

You can try closing jumper JP3 on the USBASP. It will work slower then, so that if for whatever reason your ATT25 is clocked very slow it will be able to keep up with the USBASP baud rate.

@pyflynn

I agree. I'd check the continuity from the pins on the ATtiny, right next to the plastic (red arrows), not above the pad, in case there's a small gap between the pin and the pad which would close and make contact due to the force on the test probe. Check the continuity from there to the end of the cable that plugs into the programmer (blue arrow).


That would be checking the soldering of the ATtiny to the adaptor, the soldering of the header pins in the adaptor, the continuity of the breadboard, and the continuity of the cable.

It would also be worth adding a 100 nF decoupling capacitor between Vcc and Gnd on the ATtiny, and checking it gets 5V on those pins when you are trying to program it.

1 Like

It could just be the neatest soldering job I've ever seen, but I don't see any solder on the machine pins, or on the ATtiny pins either. Is the DIP to SMD adapter just resting on the machine pins, and the ATtiny just resting on the adapter.

2 Likes

Yes... I'm a bit lazy there, since I'm going to program a few ATtiny, I just put the ATtiny in position without any soldering. I'll try solder and see. Thank you guys all!

I got the ATtiny from Taobao

Do you have a 0.1 or 0.01 ยตF capacitor across the Attiny's +v and gnd? must be really close to the chip.

Thanks guys! After soldering the ATtiny25 onto the little PCB board, it start working now.

Oh dear. If you want solderless ones

Ha, exactly what I want. Thanks!