Pages: [1]   Go Down
Author Topic: Sketch not Uploading (did my homework)  (Read 2033 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ever since I updated to 1.0, when I try to upload a new sketch to my arduino UNO, it tells me the port's in use. When I grep it in terminal, however, it says it's not in use by anything. Thoughts? Bug report posted for posterity. I've tried everything the suggested in the FAQ and then some. Does this have to do with the AVRDude thing that seems to be plaguing the windows users?
Quote
Binary sketch size: 1018 bytes (of a 32256 byte maximum)
processing.app.SerialException: Serial port '/dev/tty.usbmodemfa141' 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 java.lang.Thread.run(Thread.java:680)
processing.app.debug.RunnerException: Serial port '/dev/tty.usbmodemfa141' 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 java.lang.Thread.run(Thread.java:680)
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 495
Posts: 19040
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this a Mac? Did you try:

Code:
lsof /dev/tty.usbmodemfa141
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Indeed I did, thank you for the quick reply!

Tried it again, and got the same results (nothing). Messing about in terminal is foreign to me, so maybe you'll see something I don't.

Quote
new-host-5:~ Name$ lsof /dev/tty.usbmodemfa141
new-host-5:~ Name$
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 495
Posts: 19040
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe this will help, I don't know:

http://www.maczeppelin.com/?p=384
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Worked perfectly!! I also rolled back to 0023, same problem, then did your fix, solved. if it ain't broke, ya know?

So, why did that work?
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 495
Posts: 19040
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think two processes set up a file in /var/lock to see (by the presence of the file) if they are attempting to grab the same resource. If the directory itself isn't there the "is this device in use" function fails.
Logged


Pages: [1]   Go Up
Jump to: