Hi I just recieved my new board and I can't make it work.
I always get the same error :
Sketch uses 243893 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 18272 bytes (5%) of dynamic memory, leaving 309408 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM7
A fatal error occurred: Could not open COM7, the port doesn't exist
Failed uploading: uploading error: exit status 2
I've tried to install CP2102 driver, tried different cables and pressing boot while uploading but nothing helps.
It is if I disconnect the ESP it will be removed from choices. Also tried in different one ( showed as COM6) tried to connect with both of the usb c connectors but only one is usb the other one is uart
Hi @darebak. This error can occur when the port is open in another application. Only one application can have a serial port open at a time so Arduino IDE can't perform an upload under these conditions.
Check to see whether you have any applications running on your computer that might use the port. If they are, close them and then try the upload again.
If the upload still fails with the same error after that, try restarting your computer. In rare occasions, a glitch causes the port to get stuck open. This is one possible cause of the error. Restarting your computer restores the port to the normal working state and so fixes that particular cause of the error.
Have you tried both the USB connectors? Usually only one of them is connected to a USB-serial converter by default. The other requires some code to activate a serial interface.