Arduino IDE 1.8.13 -- A fatal esptool.py error occurred: [Errno 2] could not open port /dev/ttyUSB0

Hi,
Under Arduino IDE 1.8.13 when I compile and then want to flash an esp8266, the ArduinoIDE raises:

esptool.py v3.0
Serial port /dev/ttyUSB0
A fatal esptool.py error occurred: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: ‘/dev/ttyUSB0’

Looking at [SOLVED] arduino [Errno 13] Permission denied: '/dev/ttyUSB0' - sudomod

$ sudo chmod a+rw /dev/ttyUSB0
[sudo] Mot de passe de x245 :
chmod: impossible d’accéder à ‘/dev/ttyUSB0’: Aucun fichier ou dossier de ce nom

I also tried:

sudo groupadd dialout
sudo gpasswd -a $USER dialout
sudo usermod -a -G dialout $USER
sudo chmod a+rw /dev/ttyUSB0

Thanks for helping

The dialout group is used by Debian based distros, Arch based distros such as Manjaro use the uucp group. Don’t chmod the device file, at most it will work for the current boot.

Add your user to the uucp group then log out and back in, or follow the arch wiki.

sudo gpasswd -a $USER uucp

https://wiki.archlinux.org/title/Arduino#Accessing_serial

The file doesn’t exist.

If you unplug it and plug it back in then the file may be different, eg ttyUSB1, if so then you have to select the correct file in the IDE.

1 Like

Does work with :slight_smile:

sudo gpasswd -a $USER uucp
Shut down

Thanks

1 Like

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