Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to upload Arduino
#1
Hello, 

I cannot upload Arduino. It displays the following message:

S:\PulsePal3\PulsePal-develop\Firmware\PulsePal_2_0_0\PulsePal_2_0_0.ino: In function 'byte* Long2Bytes(long int)':
S:\PulsePal3\PulsePal-develop\Firmware\PulsePal_2_0_0\PulsePal_2_0_0.ino:980:8: warning: address of local variable 'Output' returned [-Wreturn-local-addr]
   byte Output[4] = {0};
        ^
Sketch uses 72808 bytes (13%) of program storage space. Maximum is 524288 bytes.
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:2061)
at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port 'COM3'.
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 - COM3; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:101)
... 6 more

Thank you, 
Michelle
Reply
#2
Hello Michelle,

The error message is Error touching serial port 'COM3'. That can happen if another application has control of the serial port.
If you had MATLAB or Python connected to the device, you'll need to delete the object to release the port before uploading firmware (or even better, close MATLAB / Python). 

If this isn't the issue, please share some information about your platform:
-Operating system
-Arduino version


Thanks,
Josh
Reply


Forum Jump: