Symptoms:
- I cannot upload simple sketches. For example, I tried to upload the example ‘Blink’ sketch. It compiles, but stalls on upload.
- Running Arduino from the Applications window displays “Unable to load Java Runtime Environment”.
- Running the same Arduino from the downloads folder allows the program to start. However, the serial interface doesn’t work.
System:
Mac El capitan
Arduino Uno (Make Special Edition)
Troubleshooting:
- The same Arduino module works fine on my PC using the same USB cable.
- Tried logout, restart.
- I carefully went through the process below:
- https://www.arduino.cc/en/Guide/MacOSX
- Arduino 1.6.8
- I used the Mac OS X 10.7 Lion or newer download.
- I made sure to use the Arduino board selection in the IDE.
- The only serial port I see is .cu.usbmodem1A21 (Arduino / Genduino Uno). Sometimes I see the TTY port. Neither work.
- I’m using Java Version 8 Update 73 (build 1.8.0_73_b02)
- I’m using Java Runtime environment 1.8.0_73
- The loopback test failed (Loop-Back Test Instructions - Installation & Troubleshooting - Arduino Forum)
- I tried the trick : csrutil enable —without kext
- Tried the FTDI solution: Arduino in OS X 10.9 Mavericks - Serial Port Issues - Installation & Troubleshooting - Arduino Forum
- I tried using Arduino 1.0.6. It opens, but serial doesn’t work either. I get the following errors though I’ve logged out and back in just before running Arduino IDE:
- This report would have more information with
- "Show verbose output during compilation"
- enabled in File > Preferences.
- Arduino: 1.0.6 (Mac OS X), Board: "Arduino Uno"
- Binary sketch size: 1,082 bytes (of a 32,256 byte maximum)
- processing.app.SerialException: Serial port '/dev/tty.usbmodem1A21' already in use. Try quiting any programs that may be using it.
- at processing.app.Serial.(Serial.java:171)
- at processing.app.Serial.(Serial.java:77)
- at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:77)
- at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
- at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
- at processing.app.Sketch.upload(Sketch.java:1666)
- at processing.app.Sketch.exportApplet(Sketch.java:1622)
- at processing.app.Sketch.exportApplet(Sketch.java:1594)
- at processing.app.Editor$DefaultExportHandler.run(Editor.java:2382)
- at java.lang.Thread.run(Thread.java:695)
- processing.app.debug.RunnerException: Serial port '/dev/tty.usbmodem1A21' already in use. Try quiting any programs that may be using it.
- at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:101)
- at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
- at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
- at processing.app.Sketch.upload(Sketch.java:1666)
- at processing.app.Sketch.exportApplet(Sketch.java:1622)
- at processing.app.Sketch.exportApplet(Sketch.java:1594)
- at processing.app.Editor$DefaultExportHandler.run(Editor.java:2382)
- at java.lang.Thread.run(Thread.java:695)
I'd appreciate some help. Thanks in advance.