I am trying to write an image to the Xiao_esp32C3 from the arduino ide. I have been doing the same thing for several weeks. Now I am getting this error message:
Sketch uses 905624 bytes (69%) of program storage space. Maximum is 1310720 bytes.
Global variables use 37180 bytes (11%) of dynamic memory, leaving 290500 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM13
Connecting…
Chip is ESP32-C3 (revision 4)
Features: Wi-Fi
Crystal is 40MHz
MAC: 34:85:18:03:24:68
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
Configuring flash size…
Flash will be erased from 0x00000000 to 0x00003fff…
…
Writing at 0x0008000e… (46 %)
Writing at 0x000868e5… (50 %)
Traceback (most recent call last):
File “esptool\loader.py”, line 365, in command
File “esptool\loader.py”, line 317, in write
File “serial\serialwin32.py”, line 325, in write
serial.serialutil.SerialTimeoutException: Write timeout
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “esptool.py”, line 34, in
File “esptool_init_.py”, line 1004, in main
File "esptool_init.py", line 806, in main
File “esptool\cmds.py”, line 502, in write_flash
File “esptool\loader.py”, line 108, in inner
File “esptool\loader.py”, line 963, in flash_defl_block
File “esptool\loader.py”, line 406, in check_command
File “esptool\loader.py”, line 393, in command
File “serial\serialutil.py”, line 372, in timeout
File “serial\serialwin32.py”, line 222, in _reconfigure_port
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: OSError(22, ‘A device which does not exist was specified.’, None, 433)
[9916] Failed to execute script ‘esptool’ due to unhandled exception!
the selected serial port [9916] Failed to execute script ‘esptool’ due to unhandled exception!
does not exist or your board is not connected
I have unplugged the device and let it sit for a while in case it was just in bad state. No change.
Have tried this several times with no change.