Smart Home Automation Forum
WindowsError(5, 'Access Denied.') - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A8 (https://www.kincony.com/forum/forumdisplay.php?fid=23)
+--- Thread: WindowsError(5, 'Access Denied.') (/showthread.php?tid=2939)



WindowsError(5, 'Access Denied.') - dampire - 05-24-2023

HI,
I can't run any code from arduino.

I run the ide with arduine on windows 10.
I installed the drivers that I read in a post for the usb port.

The error:

esptool.py v3.0-dev
Serial port COM3
Traceback (most recent call last):
  File "esptool.py", line 3682, in <module>
  File "esptool.py", line 3675, in _main
  File "esptool.py", line 3329, in main
  File "esptool.py", line 263, 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 'COM3': WindowsError(5, 'Access Denied.')


RE: WindowsError(5, 'Access Denied.') - admin - 05-25-2023

do you have installed USB driver for board firstly?
this is driver for CH340 USB chip: https://www.kincony.com/download/CH341SER.zip