0

it gives me this error

avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied

PLEASE HELP!!!!

3
  • Pls add the output of ls -l /dev/ttyUSB0 to your question. You should be in the same group as the device.
    – Soren A
    May 6, 2020 at 8:01
  • 1
    you can not simply 'upload' to a USB serial device, which I assume you are trying. This will probably give you an idea: askubuntu.com/questions/40959/… May 6, 2020 at 8:07
  • @VincentGerris he's using avrdude, "utility to download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers" nongnu.org/avrdude
    – kurja
    May 6, 2020 at 11:17

2 Answers 2

1

Looks like you do not have permission, as the error message says; for some operations avrdude needs root privileges.

To solve: add sudo in front of the command you used.

1
  • Normally the right solution will be to add the user to the same group as the device. Running commands with sudo / elevateted rights should be avoided if at all possible.
    – Soren A
    May 6, 2020 at 8:03
0

Add yourself to the serial port user group:

sudo usermod -a -G dialout yourusername

and then reboot.

Depending on your distro, the name of the group might change to uucp or something else.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .