Hello, I have a Error called Communication error

The error is Sort of the error given below:

Arduino: 1.8.13 (Linux), Board: "Arduino Leonardo"

Sketch uses 7024 bytes (24%) of program storage space. Maximum is 28672 bytes.
Global variables use 355 bytes (13%) of dynamic memory, leaving 2205 bytes for local variables. Maximum is 2560 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:2055)
	at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port '/dev/ttyACM0'.
	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/ttyACM0; Method name - openPort(); Exception type - Permission denied.
	at jssc.SerialPort.openPort(SerialPort.java:170)
	at processing.app.Serial.touchForCDCReset(Serial.java:101)
	... 6 more
processing.app.SerialException: Error opening serial port.
Close the serial monitor (if open) or any program using port '/dev/ttyACM0'
	at cc.arduino.plugins.wifi101.flashers.java.FlasherSerialClient.close(FlasherSerialClient.java:100)
	at cc.arduino.plugins.wifi101.flashers.Flasher.testConnection(Flasher.java:109)
	at cc.arduino.plugins.wifi101.UpdaterImpl$1.run(UpdaterImpl.java:174)
processing.app.SerialException: Error opening serial port.
Close the serial monitor (if open) or any program using port '/dev/ttyACM0'
	at cc.arduino.plugins.wifi101.flashers.java.FlasherSerialClient.close(FlasherSerialClient.java:100)
	at cc.arduino.plugins.wifi101.flashers.Flasher.testConnection(Flasher.java:109)
	at cc.arduino.plugins.wifi101.UpdaterImpl$1.run(UpdaterImpl.java:174)
Error opening serial port '/dev/ttyACM0'. Try consulting the documentation at http://playground.arduino.cc/Linux/All#Permission


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Did you try that?

make sure your user is a member of "tty" & "uucp" groups.
man moduser (or might be uesrmod depends on your distro)
moduser -a -G tty (your user id)
moduser -a -G uucp (your user id)

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.