Author Topic: Clarification on Windows IDE uploading to Digispark?  (Read 4534 times)

dbell

  • Newbie
  • *
  • Posts: 44
Clarification on Windows IDE uploading to Digispark?
« on: February 01, 2013, 01:54:21 pm »
The getting Started notes state that I don't need to 0 and shouldn't - plug in the DS before hitting Upload.
Followed that advice, building and uploading the Start (blinker) sketch. No problem.

However, after modifying the sketch, is it always necessary to unplug the DS, each time?
When I don't, I get the error below in the log window of the IDE.
If we have to mate and de-mate the DS for every upload, SOMEthing is going to get worn out or damaged!
Dave

"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"


digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Clarification on Windows IDE uploading to Digispark?
« Reply #1 on: February 01, 2013, 02:07:08 pm »




This is a hardware/firmware limitation of using the Attiny85 as a self-programming device over USB - so yes it has to be unplugged and re-plugged, we've done it thousands of times with some, and they still work great. That said, we will be releasing a cheap little gadget that lets you "disconnect" without unplugging - you can make one yourself by splicing a switch onto the 5v line in a USB extension cable, basically this allows you to turn the Digispark off and back on - which achieves the same goal.

dbell

  • Newbie
  • *
  • Posts: 44
Re: Clarification on Windows IDE uploading to Digispark?
« Reply #2 on: February 01, 2013, 02:14:23 pm »
I see...  OK, thanks.
Only needs a momentary 5V interruption, right?


digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Clarification on Windows IDE uploading to Digispark?
« Reply #3 on: February 01, 2013, 02:19:20 pm »
It needs to be interrupted form the time upload is hit until it says to insert

dbell

  • Newbie
  • *
  • Posts: 44
Re: Clarification on Windows IDE uploading to Digispark?
« Reply #4 on: February 01, 2013, 02:52:58 pm »
OK, so a momentary NC button isn't the most convenient. 

Thanks!

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Clarification on Windows IDE uploading to Digispark?
« Reply #5 on: February 01, 2013, 03:18:37 pm »
I guess it is personal preference - but I'm thinking a momentary is ideal for me - push down button, hit upload, let go of button a few seconds later - or if your fast, hit upload, push button before the compiling finishes, and then release after it says to insert.