-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Operating system
Microsoft Windows® 10 Version 21H1 Build 19043.1288
Python version
Python 3.9.7
What Chip
ESP8266
What development board or other hardware is the chip attached to
NodeMCU 1.0 ESP-12E
Is anything else attached to the development board, except for the serial flasher connections?
No
Are you running esptool.py from an IDE such as Arduino or Eclipse?
No IDE, Windows command prompt
Full esptool.py command line that was run:
py -m esptool --port COM5 read_mac
Full output from esptool.py
esptool.py v3.1
Serial port COM5
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python39\lib\site-packages\esptool.py", line 4582, in <module>
_main()
File "C:\Program Files\Python39\lib\site-packages\esptool.py", line 4575, in _main
main()
File "C:\Program Files\Python39\lib\site-packages\esptool.py", line 4074, in main
esp = esp or get_default_connected_device(ser_list, port=args.port, connect_attempts=args.connect_attempts,
File "C:\Program Files\Python39\lib\site-packages\esptool.py", line 116, in get_default_connected_device
_esp = ESPLoader.detect_chip(each_port, initial_baud, before, trace,
File "C:\Program Files\Python39\lib\site-packages\esptool.py", line 354, in detect_chip
detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
File "C:\Program Files\Python39\lib\site-packages\esptool.py", line 313, in __init__
self._port = serial.serial_for_url(port)
File "C:\Users\Alex\AppData\Roaming\Python\Python39\site-packages\serial\__init__.py", line 90, in serial_for_url
instance.open()
File "C:\Users\Alex\AppData\Roaming\Python\Python39\site-packages\serial\serialwin32.py", line 64, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM5': PermissionError(13, 'Access is denied.', None, 5)
Do you have any other information from investigating this?
This problem is not present in esptool.py v3.0 (a compiled binary was used)
The problem is not present when not specifying the COM port i.e. py -m esptool read_mac. esptool.py successfully identifies the NodeMCU on COM5 and reads the MAC address successfully.
Metadata
Metadata
Assignees
Labels
No labels