I've tried searching for this but haven't really found this exact issue:
I have a free duino decimilia.
I'm currently just testing the example sketchs that come with the IDE. I click upload and see the RX/TX leds blinking away so it looks like its transferring the sketch. But the IDE comes back and says "Binary sketch size: 0 bytes. (of a 14336 byte maximum)." And the sketch doesn't run on the board. Just sits there doing nothing. The LED on pin 13 just kind of stays lit rather than blinks (regardless of the sketch).
int ledPin = 13; // LED connected to digital pin 13
void setup() // run once, when the sketch starts
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop() // run over and over again
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}
I tried selecting the board again, and the java console threw a whole bunch of warnings about various cpp files:
example:
Stepper.cpp:1: warning: -ffunction-sections may affect debugging on some targetsIn file included from Stepper.cpp:48:
The sketch still fails and shows 0 bytes.
However I thought more about trialex's response and dug up an older version of the ide (0011 alpha) that I had on my filesystem and tried the same sketch there. It worked. So something with this newer version - 0013 is causing me problems. Maybe I'll try building from source.
I am having the same issue with 0013 (but not 0012) on Debian Etch, so I tried 0013 on Debian Lenny and it works correctly. I suspect the old versions of avr-libc or gcc-avr in etch, but I haven't done enough testing to confirm it.