Go Down

Topic: Sketch not Uploading (did my homework) (Read 2 times) previous topic - next topic

abetteridea

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)

Nick Gammon

Is this a Mac? Did you try:

Code: [Select]
lsof /dev/tty.usbmodemfa141
http://www.gammon.com.au/electronics

abetteridea

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$

Nick Gammon

Maybe this will help, I don't know:

http://www.maczeppelin.com/?p=384
http://www.gammon.com.au/electronics

abetteridea

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?

Nick Gammon

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.
http://www.gammon.com.au/electronics

Go Up