Created
March 9, 2019 19:37
-
-
Save justinmklam/05fbfc135e1347070bb04e50e9b01b85 to your computer and use it in GitHub Desktop.
Change serial port permissions for Arduino to enable sketch upload.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Error: | |
# Loading configuration... | |
# Initializing packages... | |
# Preparing boards... | |
# Verifying... | |
# Sketch uses 4044 bytes (12%) of program storage space. Maximum is 32256 bytes. | |
# Global variables use 407 bytes (19%) of dynamic memory, leaving 1641 bytes for local variables. Maximum is 2048 bytes. | |
# Uploading... | |
# An error occurred while uploading the sketch | |
# avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied | |
# [Error] Exit with code=1 | |
ls -l /dev/ttyACM* | |
# Output: | |
# crw-rw---- 1 root dialout 166, 0 Mar 9 11:34 /dev/ttyACM0 | |
sudo chmod a+rw /dev/ttyACM0 | |
# Output: | |
# crw-rw-rw- 1 root dialout 166, 0 Mar 9 11:34 /dev/ttyACM0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment