Serial Port Error

I’m getting this error message and I’m not sure what it means.

processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:152)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2055)
at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port ‘/dev/cu.usbmodem2062318135531’.
at processing.app.Serial.touchForCDCReset(Serial.java:107)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:136)
… 5 more
Caused by: jssc.SerialPortException: Port name - /dev/cu.usbmodem2062318135531; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:101)
… 6 more

I think “port busy” means that you have some other app on your computer that is talking to the serial port.

Maybe this will help:
https://www.intech.co.nz/help-centre/mscanv5/faq_84.htm

I forgot to mention I’m using a Mac. However, your suggestion did send me off in the right direction. I came across an idea from someone who advised Arduino may be trying to use the port and if you close and restart Arduino, it may free up the port. That seemed to do the trick because it worked on the very next attempt.

Thank you!

2 Likes