Programmer Usbasp with Attiny45

Hello

I have a Usbasp programmer (from Aliexpress), and I want program my Attiny45 with that, but it does not work. I get the following error message:

avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'

my platformio configuration is following. What is wrong?

Thank you.

[env:attiny45]
platform = atmelavr
board = attiny45
framework = arduino
upload_protocol = usbasp

Do you see the device in the Windows device manager / lsusb?

image

ah, so I must check first for the driver, thank you

I installed the driver, now I have following messages. Where can I found a standard fuse configuration for attiny45?

image

Needs

upload_flags = -e

in the platformio.ini for an erase.

ok thank you, now I still have following errors:

image

my setting:

[env:attiny45]
platform = atmelavr
board = attiny45
framework = arduino
upload_protocol = usbasp
upload_flags = -e

Hm that doesn’t look good at all. Please use the project task Advanced → Verbose Upload and show the avrdude invocation line that is appearing there.

Thank you, see below the avrdude messages with “Verbose Upload”:

and the previous part:

It complains about an old firmware, can you update per USBASP firmware update | bitbanging?

It still not works. I think there was a problem with updating the firmware:

image

in addition:
When I upload with shorted JP3, then it is hanging at following position:

I tried now my other USBasp and shorted JP3 and now it works… strange:

so I think solution should be JP3 shorted and JP21 to +5V and not +3.3V…

1 Like

I have a supplementary question:
How do I turn off the clock divider from 8? (my delay is 8 times too slow…), I have already tried the following but without success:

[env:attiny45]
platform = atmelavr
board = attiny45
framework = arduino
upload_flags = -e
upload_protocol = usbasp
board_fuses.lfuse = 0xE2
board_fuses.hfuse = 0xDF
board_fuses.efuse = 0xFF

Have you burned the new fuses using the project task Burn Fuses?

ok I see, did not know that with “Set Fuses” also the fuses are programmed. Thank you