I am trying to run a simple ‘led blink’ program using ESP32 and Arduino IDE, while setting it up I have used Silicon Labs CP210x driver (https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads) as suggested in the hardware module.
Initially my Windows system didn’t detect it, so I manually added it.
It is giving this kind of error , so I tried to update it, uninstall & reinstall it again but nothing worked.
Also I have my code for led blinking and on uploading it is giving the following error!
code:
const int ledPin = 2;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
Error :
Sketch uses 267933 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20184 bytes (6%) of dynamic memory, leaving 307496 bytes for local variables. Maximum is 327680 bytes.
"C:UsersadminAppDataLocalArduino15packagesesp32toolsesptool_py4.6/esptool.exe" --chip esp32 --port "COM5" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:UsersadminAppDataLocalTemparduinosketchesC5BFBB22C7463170D2728E91C796CD6D/sketch1.ino.bootloader.bin" 0x8000 "C:UsersadminAppDataLocalTemparduinosketchesC5BFBB22C7463170D2728E91C796CD6D/sketch1.ino.partitions.bin" 0xe000 "C:UsersadminAppDataLocalArduino15packagesesp32hardwareesp323.0.2/tools/partitions/boot_app0.bin" 0x10000 "C:UsersadminAppDataLocalTemparduinosketchesC5BFBB22C7463170D2728E91C796CD6D/sketch1.ino.bin"
esptool.py v4.6
Serial port COM5
A fatal error occurred: Could not open COM5, the port doesn't exist
Failed uploading: uploading error: exit status 2
I have been working on this from past couple of days and I have also tried different drivers of Silicon Labs but nothing worked.
Help Appreciated!