ESP32 not uploading

Hello, I am new to this forum and the ESP32, so please take it easy.
I have the ESP32-C3-Devkit-1
I am trying to upload any sketch to it using the Arduino IDE. I tried multiple sketches, even the blank sketch. It keep giving me an error. I have been uploading stuff to the board for a couple of weeks with no problems, but now I don't know what changed or what to do. This is the error message

Sketch uses 217050 bytes (16%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13404 bytes (4%) of dynamic memory, leaving 314276 bytes for local variables. Maximum is 327680 bytes.
Traceback (most recent call last):
  File "esptool.py", line 34, in <module>
  File "esptool/__init__.py", line 1032, in _main
  File "esptool/__init__.py", line 674, in main
  File "esptool/__init__.py", line 920, in get_default_connected_device
  File "esptool/loader.py", line 302, in __init__
  File "serial/__init__.py", line 90, in serial_for_url
  File "serial/serialposix.py", line 332, in open
  File "serial/serialposix.py", line 517, in _reconfigure_port
termios.error: (22, 'Invalid argument')
[97880] Failed to execute script 'esptool' due to unhandled exception!
esptool.py v4.5.1
Serial port /dev/cu.usbserial-210
Failed uploading: uploading error: exit status 1

And these are the setting I am using:

Also, i have tried it on another devkit that is still fresh out of the box, same thing

Try changing the upload speed to 115200.

Just did, same did not fix it

Are you using a USB hub? What is your USB cable setup?

I have a macbook M1, it has only USB-C ports, so I have an adaptor, USBC to USBA, and then connected to the ESP32 module. Check the pic

@benjamin, thank you for your time, but I restarted my laptop, and it is working again.

Great! I’m glad it worked out for you. A reboot is always a good first thing to try.

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