A serial exception error occurred: Cannot configure port, something went wrong

Hello, I am a beginner with the ESP32 microcontroller (I am using the ESP32-S3-WROOM 1) and I am currently learning how to program it using Arduino IDE. I am encountering this error:

A serial exception error occurred: Cannot configure port, something went wrong. Original message: OSError(22, 'A device which does not exist was specified.', None, 433)

Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
Failed uploading: uploading error: exit status 1

I have checked and rechecked the following steps:

  • The correct board is selected.
  • The correct COM port is selected.
  • My device is detected in the Device Manager and in the Command Prompt, and the COM port recognizes the board.
  • The correct drivers are also installed and recognized.
  • The board is new, the USB cable is new, and data transfer is allowed.

I am stuck and would really appreciate any help! Thank you!

Hi @t.user21 ,

you may check this

https://forum.seeedstudio.com/t/xiao-esp32-write-to-device-failure/269129

which seems to be based on a similar error ...

Good luck!
ec2021

P.S.: Usually the ESP32 will be automatically set to Boot Mode, however there have been boards available that require manual interaction:

See here https://docs.espressif.com/projects/esptool/en/latest/esp32/advanced-topics/boot-mode-selection.html#manual-bootloader

That is not an Arduino Nano ESP32. Hence your topic has been moved to a more suitable location on the forum.

Hi ec2021,

Thank you for your suggestions! I followed the advice in the forum link and also reviewed the manual bootloader process from the Espressif documentation. Unfortunately, I still couldn’t resolve the issue. I made sure to check all the steps, such as selecting the correct board, COM port, and ensuring that the drivers are installed and recognized. The device is detected in the Device Manager, and everything seems in order, but the error persists.

I really appreciate your help, and if you have any further suggestions, I would be grateful for them!

You are welcome ...

Unfortunately your problem is not one of the kind that can easily be checked "at home" ... :wink:

So I can only make some suggestions you may try

https://forum.seeedstudio.com/t/xiao-esp32-write-to-device-failure/269129

If you use the "ESP32S3 Dev Module" is this "enabled"?

image

See here

https://github.com/espressif/arduino-esp32/issues/8237#issuecomment-1563497918

If none of the suggestions work would you mind to post the full error message you get?

(In code tags please as it makes it easier to read them:
image )

Good luck!
ec2021

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