Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« on: April 03, 2011, 06:09:40 am » |
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? 
|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #1 on: April 03, 2011, 06:28:27 am » |
Have you restarted your computer (is it windows or mac?)? Have you reinstalled the drivers? Have you got the current IDE(don't know what version you havbe)? Have you Re-Downloaded and extracted the IDE? We need more info - what have you tried, what do you mean by 'I was trying my little sketch...', were you just typing, opening the sketch, or uploading.
Drew
|
|
|
|
|
Logged
|
|
|
|
|
Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #2 on: April 03, 2011, 07:12:51 am » |
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); }
}
|
|
|
|
|
Logged
|
|
|
|
|
Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #3 on: April 03, 2011, 07:28:56 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #4 on: April 03, 2011, 10:50:51 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #5 on: April 03, 2011, 11:05:02 am » |
disconnect arduino from everything (including PC). Press RESET and reconnect usb - keep RESET pressed hit upload in IDE when sketch size comes up release RESET.
See if that helps
Drew.
|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #6 on: April 03, 2011, 11:11:14 am » |
The post you have provided is for arduino uno - not the normal arduino.
|
|
|
|
|
Logged
|
|
|
|
|
Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #7 on: April 03, 2011, 11:14:24 am » |
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 
|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #8 on: April 03, 2011, 11:25:23 am » |
No problem - have you tried the above?
|
|
|
|
|
Logged
|
|
|
|
|
Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #9 on: April 03, 2011, 11:25:49 am » |
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

|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #10 on: April 03, 2011, 11:31:16 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #11 on: April 03, 2011, 11:35:25 am » |
Mmm i can't enter in the forum :\ can you copy + paste the main text?
|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #12 on: April 03, 2011, 11:42:35 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Milan
Offline
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #13 on: April 03, 2011, 11:43:11 am » |
No...
|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #14 on: April 03, 2011, 11:54:32 am » |
Its a 3 page tutorial (with pics) - I just don't have the time to cut n paste it.
|
|
|
|
|
Logged
|
|
|
|
|
|