Hello,
I am trying to upload code to an Arduino Due and get the error shown below. The program compiles correctly, but it will not upload as it cannot find the port.
I have checked that drivers are up to date (pointing to driver folder in Arduino directory), and have tried reconnecting the board dozens of times. Windows 7 device manager shows PORT 5, and the same port is also ticked in the Arduino interface.
Strangely, in the past, it has found the port and the program runs successfully. However, most of the time, it says "port not found" or "port busy".
Any advice would be much appreciated.
processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:96)
at processing.app.Sketch.upload(Sketch.java:1714)
at processing.app.Sketch.exportApplet(Sketch.java:1625)
at processing.app.Sketch.exportApplet(Sketch.java:1597)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2397)
at java.lang.Thread.run(Unknown Source)
Caused by: processing.app.SerialException: Error touching serial port 'COM5'.
at processing.app.Serial.touchPort(Serial.java:110)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:83)
... 5 more
Caused by: jssc.SerialPortException: Port name - COM5; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.touchPort(Serial.java:105)
... 6 more