[SOLVED] Can't upload sketches


I just got my Arduboy and followed the quick start guide. Whenever I try to upload anything to it, in this case the standard HelloWorld program, I get the following error:

Sketch uses 10,904 bytes (38%) of program storage space. Maximum is 28,672 bytes.
Global variables use 1,253 bytes (48%) of dynamic memory, leaving 1,307 bytes for local variables. Maximum is 2,560 bytes.
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:162)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.Sketch.upload(Sketch.java:1186)
at processing.app.Sketch.exportApplet(Sketch.java:1160)
at processing.app.Sketch.exportApplet(Sketch.java:1132)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2409)
at java.lang.Thread.run(Thread.java:745)
Caused by: processing.app.SerialException: Error touching serial port ‘/dev/ttyACM0’.
at processing.app.Serial.touchForCDCReset(Serial.java:87)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:146)
… 6 more
Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Permission denied.
at jssc.SerialPort.openPort(SerialPort.java:170)
at processing.app.Serial.touchForCDCReset(Serial.java:81)
… 7 more

It seems to recognize the board though, as I can select /dev/ttyACM0 (Arduino Leonardo) from Tools > Port once I’ve connected it.

I’m using 64-Bit Xubuntu 16.04 LTS.

Does someone know how to fix this?

Looks like you dont’ have permission to write to /dev/ttyACM0… quick short-term fix, while Arduboy is still connected, in a terminal window do:

sudo chmod 666 /dev/ttyACM0

and try uploading again.

(The proper long-term fix is adding a udev rule for ttyACM device files)

See this:

You probably need to add your user to the dialout group.

1 Like

Adding myself to the dialout group fixed the issue. Thanks! :slight_smile: