0

When uploading code to the ATtiny85 (on a Digispark USB board) with the Arduino IDE (1.8.2) I get the following error about ~ half of the times:

...
erasing: 65% complete
>> Flash erase error -32 has occured ...
>> Please unplug the device and restart the program.

When I try again (sometimes need to repeat a few times), it works without problems. Is there anything I can do to improve this?

(While it always works in the end, it's annoying to have to unplug and replug the device for each retry.)

The line used by the Arduino IDE to flash the device is

.arduino15/packages/digistump/tools/micronucleus/2.0a4/launcher -cdigispark --timeout 60 -Uflash:w:...:i 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.