3

I'm using Arduino: 1.6.7 (Mac OS X 10.11.3), Board: "Arduino Leonardo".

When I try to program my code, it works without problems. When I want to open the built-in Serial Monitor or Serial Plotter, it says "Board at /dev/cu.usbmodem1421 is not available".

The board is available and my simple code even works using "SerialTools" from Mac App Store. So there must be some problem with the Arduino IDE.

No serial related messages on dmesg. Comically it mounts and umounts my Boot OS X and Recovery HD partitions every time I unplug the Leonardo.

hfs: mounted Recovery HD on device disk0s3
hfs: unmount initiated on Recovery HD on device disk0s3 hfs: mounted
Boot OS X on device disk2s3 ioqueue_depth = 64, ioscale = 2 hfs:
unmount initiated on Boot OS X on device disk2s3

Any ideas?

int inByte = 0; // incoming serial byte
void setup() {
 // start serial port at 9600 bps:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for Leonardo only
 }
}
void loop() {
 if (Serial.available() > 0) {
 inByte = Serial.read();
 Serial.println("Hi");
 }
}
VE7JRO
2,51519 gold badges27 silver badges29 bronze badges
asked Feb 15, 2016 at 20:43
2
  • did you ever solve your problem. If so, could you post the answer here please? Commented Jul 10, 2017 at 17:04
  • 1
    Could you be affected by github.com/arduino/arduino/issues/3495 ? Commented Aug 30, 2017 at 19:45

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.