Arduino IDE Upload Error with ESP32-S3

'm having trouble uploading my sketch to my Seeed Xiao ESP32-S3 board using the Arduino IDE (v2.3.2) AppImage on Linux Mint. I've added my user to the dialout usergroup, but I still get an error during the upload process. Here's the error output:

Sketch uses 263077 bytes (7%) of program storage space. Maximum is 3342336 bytes.
Global variables use 14032 bytes (4%) of dynamic memory, leaving 313648 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port /dev/ttyACM0

A fatal error occurred: Could not open /dev/ttyACM0, the port doesn't exist
Failed uploading: uploading error: exit status 2

I've double-checked my board and port settings in the Arduino IDE, and they seem correct. Has anyone encountered a similar issue and found a solution? Any help would be greatly appreciated!

I use Linux mint and the 1.18 IDE and see the /dev/ttyAMC0 in the list of ports but it does not refer to the Arduino that is connected. The port selected should show a check mark on the right side of it. You should have USB0 or something like that. It is usually the one on the bottom of the list. A bad cable or a non data cable can cause you this problem. If you did not logout and log in after adding your self to the dialout group try that, it is required for it to work. Here are the steps I follow:
Type 'groups', is 'dialout' there ?
sudo usermod -a -G tty yourUserName - sudo usermod -a -G tty gil
sudo usermod -a -G dialout yourUserName
Log off and log on again for the changes to take effect.
The last step is most important!

I appreciate your response and guidance! I've followed your steps, and while I still encounter the same error, I now have a better understanding of the issue. It seems the problem lies with the port selection or recognition. I'll focus my troubleshooting efforts on that aspect.

I figured it out. It turns out that /dev/ttyAMC0 was indeed the correct port, but I was missing the following sudo chmod a+rw /dev/ttyACM0. For some reason adding myself to the tty and dialout group was not sufficient.

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