I have an Arduino Uno running on Ubuntu 10.10 (intel processor) (arduino-0021) IDE
I have no problems uploading to the arduino when it is only a digitalWrite command, but as soon as I upload a program to the Arduno that uses the analog commands it works fine on the arduino but I can no longer access the arduino through "Tools --> Serial Port --> /dev/ttyACM0"
Its like the program running on the Arduino is "hogging" the usb cable and I can no longer upload another file. If I am patient and try a few times I can finally upload another program that doesn't use the serial command or analog inputs and then it works fine until another serial type program is loaded then it does it again.
Is it my arduino, or my drivers, or the Arduino IDE, (arduino-0021)
Time to do some googling. There is a fix to the bootloader for the UNO that fixes the inability to upload new code when the current code is flooding the serial port with data.
By the way,
void loop() {
char c = Serial.read();
Serial.print(c);
}
is just plain stupid. Reading data that isn't there is not real bright. There is a reason that there is a function to report how much data is available to be read.