Digistump Forums

The Digispark => Digispark (Original) Support => Topic started by: potato on December 25, 2012, 12:58:45 pm

Title: Uploading code
Post by: potato on December 25, 2012, 12:58:45 pm
I get this:
Binary sketch size: 2,550 bytes (of a 6,010 byte maximum)
Running Digispark Uploader...
Plug in device now...
Assertion failed: res >= 4, file library/micronucleus_lib.c, line 63

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
connecting: 20% complete
connecting: 23% complete
connecting: 27% complete
connecting: 30% complete
connecting: 34% complete
connecting: 40% complete
> Device looks like ATtiny85!
> Available space for user application: 6010 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94
> Erase function sleep duration: 752ms
parsing: 40% complete
parsing: 60% complete
> Erasing the memory ...
erasing: 60% complete
(60-79% deleted)
erasing: 79% complete
>> Eep! Connection to device lost during erase! Not to worry
>> This happens on some computers - reconnecting...

After many tries it will work but how can i fix this?
Title: Uploading code
Post by: digistump on December 26, 2012, 03:38:38 pm
@potato

Running system?
Type of computer?

Are you using a cable or plugging directly into USB ports?

Laptop or Desktop? If desktop, front or rear ports?



This part

Assertion failed: res >= 4, file library/micronucleus_lib.c, line 63

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application\'s support team for more information.


Is exactly what I get if I have the Digispark already plugged in when I hit upload. Are you plugging it in before or after hitting upload? It should not be plugged into the computer until after hitting upload.


Regarding this part:


   erasing: 79% complete
   >> Eep! Connection to device lost during erase! Not to worry
   >> This happens on some computers - reconnecting...


Does it work after that or is that where it dies? If it works, this is normal on some systems, basically the device disconnects and reconnects after being erased. If it dies after that then this suggests a probably with the USB signal - which could be due to the USB port being used, a bad cable, or various other things. Can you try plugging in directly to the rear ports (if possible) - and also try with a hub if you have one.

Let me know how it all goes and we can go from there.

Thanks,
Erik
Title: Uploading code
Post by: potato on December 26, 2012, 04:40:59 pm
Windows 7 home premium
hp
directly in to front port
I dont think i was putting it in before, but cannot remember. It seems to be working, and not getting the errors now. I have not changed anything.

I did not try to see if it did work after the:
erasing: 79% complete
>> Eep! Connection to device lost during erase! Not to worry
>> This happens on some computers - reconnecting...
When ever it would not work i could get it to work by taking it out and starting the upload over.
Thanks
Title: Uploading code
Post by: digistump on December 26, 2012, 05:49:12 pm
Glad it\'s working - let me know if it comes up again.