Hardware:
Board: ?ESP32 Dev Module?
Core Installation/update date: ?11/jul/2017?
IDE name: ?Arduino IDE? ?Platform.io? ?IDF component?
Flash Frequency: ?40Mhz?
Upload Speed: ?115200?
Description:
Error when compiling a code to the microcontroller
this is the error message:
esptool.py v2.1
Traceback (most recent call last):
File "esptool.py", line 2524, in
File "esptool.py", line 2517, in main
File "esptool.py", line 2246, in main
File "esptool.py", line 177, in init
File "site-packages\serial_init.py", line 88, in serial_for_url
File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException: could not open port 'COM8': WindowsError(2, 'The system cannot find the file specified.')
Failed to execute script esptool
the selected serial port Failed to execute script esptool
does not exist or your board is not connected
Sketch:
#define led 2
void setup () {
pinMode(led, OUTPUT);
}
void loop () {
digitalWrite (led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);
}
Debug Messages:
Enable Core debug level: Debug on tools menu of Arduino IDE, then put the serial output here