Search found 6 matches

by smarthall
Tue Jan 17, 2012 1:20 am
Forum: LeoStick
Topic: Hang during upload (Win7 x86-64)
Replies: 12
Views: 12899

Re: Hang during upload (Win7 x86-64)

Yes! As long as you are not scared of the command line. If you hold down Shift when you click the upload button you can see the commands that Arduino is running to put the file on the device. There will be a step where it launches avrdude on the compiled hex file to upload the code to the stick. If ...
by smarthall
Mon Jan 16, 2012 10:19 pm
Forum: LeoStick
Topic: Hang during upload (Win7 x86-64)
Replies: 12
Views: 12899

Re: Hang during upload (Win7 x86-64)

So far, I've noticed the following things:

tone()
Serial.begin()
Serial.write()
Serial.println()
Any of the serial stuff (Use LUFA instead)
The whole Tone library
Playing with timers

And the things that will crash any chip:

Dividing by zero
Using too much stack space
by smarthall
Mon Jan 16, 2012 9:32 pm
Forum: LeoStick
Topic: Hang during upload (Win7 x86-64)
Replies: 12
Views: 12899

Re: Hang during upload (Win7 x86-64)

You could grab someone with a Linux PC, just to get it back to a working state? The three second dtime is plenty for a Linux computer to get it all attached and setup. Increasing the bootloader time requires you to upload an entirely new bootloader (which I dont know if we have the code for yet). To...
by smarthall
Mon Jan 16, 2012 9:12 pm
Forum: LeoStick
Topic: Hang during upload (Win7 x86-64)
Replies: 12
Views: 12899

Re: Hang during upload (Win7 x86-64)

This happens if you have crashed the Atmega with your sketch. What happens is you accidentally crash the chip, or override the timer used for USB. The chip can then no longer respond to the reset packet sent to it just before the Arduino goes to program it. The best way to get yourself out of this s...
by smarthall
Mon Jan 16, 2012 12:33 pm
Forum: LeoStick examples, software and fun sketches
Topic: Leostick Tunes
Replies: 4
Views: 5650

Re: Leostick Tunes

I made a video for anyone watching who isn't at the conference and unable to experience the joy of programming a little USB key to play a tune. You can find it at: http://yfrog.com/n2p80z
by smarthall
Mon Jan 16, 2012 3:27 am
Forum: LeoStick examples, software and fun sketches
Topic: Leostick Tunes
Replies: 4
Views: 5650

Leostick Tunes

I've put up a hacked version of one of the Tone library examples that works on the LeoStick using software PWM.

You can find it on gist here: https://gist.github.com/1618800