Arduino IDE upload error to ATTiny85

Hi! I received a pack of 5 attiny85's yesterday and am trying to upload a digikeyboard script to it. It compiles correct, but 29/30 times I get this error:

Run error -1 has occured ...

The other 1/30 times it works and uploads correctly. I feel like there's something I'm doing wrong here and can make it more consistent. Any ideas?
Thanks!

Here's the full log:

Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)

Please plug in the device ...
Press CTRL+C to terminate the program.
Device is found!
connecting: 16% complete
connecting: 22% complete
connecting: 28% complete
connecting: 33% complete
Device has firmware version 1.6
Available space for user applications: 6012 bytes
Suggested sleep time between sending pages: 8ms
Whole page count: 94 page size: 64
Erase function sleep duration: 752ms
parsing: 50% complete
Erasing the memory ...
erasing: 55% complete
erasing: 60% complete
erasing: 65% complete
Starting to upload ...
writing: 70% complete
writing: 75% complete
writing: 80% complete
Starting the user app ...

Run error -1 has occured ...
Please unplug the device and restart the program.

Can you post a link to these please. You see an ATtiny85 is just a chip so you would not expect to plug anything into it. Normally you would program it by connecting it to an Arduino running the ArduinoISP software. So what exactly do you have?

I bought them here: https://www.amazon.de/-/en/dp/B076KVKHH1?ref=ppx_pop_dt_b_asin_title&th=1

What are your settings for the board in IDE?

The only things I changed:

File > Preferences > Additional Board Manager URLs:

https://raw.githubusercontent.com/digistump/arduino-boards-index/master/package_digistump_index.json

and

Tools > Board:

Digispark (Default - 16.5mhz)

One other thing that could happen (happens all the time to me) when you instert the board into usb when prompted it might fail, so it takes several tries until it is inserted "right"

This is exactly what is happening. Have you found no way to fix it? Can I always insert it "right"?

So you managed to get it upload succesfully? I dont know of any 100% way of doing it, and dont really care because it takes a few tries and then it is done, not a biggy

Yeah I did, it just takes a while sometimes and I thought I might be doing something wrong.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.