Port already in use OR not found

I was trying my little sketch when Arduino ide crash... So i launch again the ide but now i can't upload file on board! If i click on tools the program slows and after 20 sec appears: Port already in use and sometimes also appears port not found! What could have happened? :(

(deleted)

I've restarted yes. I use Ubuntu.. I have delete the folder and re-extract it. I compile the sketch, but when i try to upload it on arduino i have the problem!

The sketch that initially works is:

void setup(){
  Serial.begin(9600);
  pinMode(13, OUTPUT);
}

void loop(){

    int inByte = Serial.read() - ('0');
    if(inByte == 1)
      digitalWrite(13, HIGH);
    if(inByte == 0)
      digitalWrite(13, LOW);
  }


}
processing.app.SerialException: Serial port '/dev/ttyACM0' already in use.  Try quiting any programs that may be using it.
	at processing.app.Serial.<init>(Serial.java:144)
	at processing.app.Serial.<init>(Serial.java:76)
	at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:75)
	at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
	at processing.app.Sketch.upload(Sketch.java:1603)
	at processing.app.Sketch.exportApplet(Sketch.java:1568)
	at processing.app.Sketch.exportApplet(Sketch.java:1524)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2302)
	at java.lang.Thread.run(Thread.java:636)
processing.app.debug.RunnerException: Serial port '/dev/ttyACM0' already in use.  Try quiting any programs that may be using it.
	at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:99)
	at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
	at processing.app.Sketch.upload(Sketch.java:1603)
	at processing.app.Sketch.exportApplet(Sketch.java:1568)
	at processing.app.Sketch.exportApplet(Sketch.java:1524)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2302)
	at java.lang.Thread.run(Thread.java:636)

Appears on the terminal

I think that my problem is similar to http://stackoverflow.com/questions/5290428/how-to-reset-an-arduino-board

(deleted)

(deleted)

spycatcher2k: The post you have provided is for arduino uno - not the normal arduino.

I've Arduino UNO. Sorry i forget to say it :) And sorry for my bad english :grin:

(deleted)

Yes, the result:

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x00
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00

:(

(deleted)

Mmm i can't enter in the forum :\ can you copy + paste the main text?

(deleted)

No...

(deleted)

If you want, you can do it when you have time... =( Thanks

Only one answer: can you think that my problem is solvable?

(deleted)

Ok thanks. :slight_smile:

It's easy to do?