ESP 32 Sketch Error
Hello, i have an esp 32 which im trying to upload a sketch to, i have installed arduino ide, installed esp32 board, and 2 libraries ( SensorLib and LVGL ), and I am trying to upload a demo sketch 'SimpleTime', this is the error i am getting:
sketch uses 884986 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 44540 bytes (13%) of dynamic memory, leaving 283140 bytes for local variables. Maximum is 327680 bytes.
A fatal error occurred: Could not open COM9, the port is busy or doesn't exist.
(Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31))
esptool.py v4.8.1
Serial port COM9:
This is the link to the tutorial I am using:
https://www.waveshare.com/wiki/ESP32-S3-LCD-3.16
2 Replies
Step 1 is to find out why your PC doesn't "see" your ESP, until Windows can see the board you won't be able to upload anything. Common issues are a "power only" (charging) USB cable or the correct driver hasn't been loaded.
(also, this channel is for Official Arduino Product help, an ESP is not an Arduino product)
Sounds like a driver issue. Assuming you are on windows you can open the device manager and check if you have an unrecognized device on your com port. If that's the case you can follow this guide:
https://randomnerdtutorials.com/install-esp32-esp8266-usb-drivers-cp210x-windows/
Random Nerd Tutorials
Install ESP32/ESP8266 CP210x USB Drivers (Windows PC) | Random Nerd...
Install the CP210x USB to UART Bridge Virtual COM Port drivers to program the ESP32 and ESP8266 NodeMCU. This guide covers how to install drivers on Windows PC.