Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Re: SerialException with Arduino v1.0.2 and Leonardo on: November 16, 2012, 01:55:30 am
Yes I can confirm the bug. I found it with my own sketch, also tried your sketch.

Error messages are same as yours, verbatim - all the same java line numbers.

I am also on Arduino.app 1.0.2.

I am on Mountain Lion 10.8.2, however.

Also, I am using a Micro instead of a Leonardo. (I believe they are electrically identical?)

I don't get it with every upload, maybe 70% of uploads?

Yes my sketch also runs fine despite the error.

Oh - I just tried again and got a different error:
processing.app.SerialException: Error touching serial port '/dev/tty.usbmodemfd121'.
   at processing.app.Serial.touchPort(Serial.java:123)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:201)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
   at processing.app.Sketch.upload(Sketch.java:1671)
   at processing.app.Sketch.exportApplet(Sketch.java:1627)
   at processing.app.Sketch.exportApplet(Sketch.java:1599)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
   at java.lang.Thread.run(Thread.java:680)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
   at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:171)
   at processing.app.Serial.touchPort(Serial.java:113)
   ... 7 more

Could not repeat that one though. Usually I get your error, and sometimes no error.

Cheers.

P.S. I also have an Uno, and do not get the error with that (everything else the same).

P.P.S. I believe this is the right spot in the source code, see line 119 here:
https://github.com/arduino/Arduino/blob/master/app/src/processing/app/Serial.java

P.P.P.S. :-) Also, Arduino.app 1.5.1 does not produce this exception. (However the Micro is not among the supported boards in 1.5.1 ... I have to select "Leonardo".)
Pages: [1]