The error message “Avrdude: ser_open can’t open device /dev/ttyACM0: Permission denied” typically occurs when the user running the avrdude
command does not have the necessary permissions to access the specified device, /dev/ttyACM0
.
Here are a few possible solutions you can try:
- Run the command with root privileges: Try running the
avrdude
command withsudo
to execute it as the root user. This can be done by prefixing the command withsudo
, like this:
sudo chmod a+rw /dev/ttyACM0