I have just started the “Learn ESP32 with Arduino iDE Course and ran into a snag that I don’t knw how to fix.I have tried everything I know to get this program to work on my ESP-32 boards. I get the same error every time I try to load the Wifi Scan sketch and I can not figure out the problem. Here is the error message I get when I try to load the wifi scan code.
Sketch uses 631346 bytes (48%) of program storage space. Maximum is 1310720 bytes.
Global variables use 37960 bytes (11%) of dynamic memory, leaving 289720 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port COM4
Traceback (most recent call last):
File “esptool.py”, line 2959, in <module>
File “esptool.py”, line 2952, in _main
File “esptool.py”, line 2652, in main
File “esptool.py”, line 222, 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 ‘COM4’: WindowsError(5, ‘Access is denied.’)
Failed to execute script esptool
the selected serial port Failed to execute script esptool
does not exist or your board is not connected
Are the files corrupted? I do not know what to do now, I have tried 2 different ESP-32 modules, different usb cables and two different Windows 10 computers and get the same errors. Can you help please?
I found the problem.
Lowell