错误提示
Traceback (most recent call last):
File "d:\ESP32\idf\esp-idf\components\esptool_py\esptool\esptool.py", line 5482, in <module>
_main()
File "d:\ESP32\idf\esp-idf\components\esptool_py\esptool\esptool.py", line 5475, in _main
main()
File "d:\ESP32\idf\esp-idf\components\esptool_py\esptool\esptool.py", line 4782, in main
esp = esp or get_default_connected_device(ser_list, port=args.port, connect_attempts=args.connect_attempts,
File "d:\ESP32\idf\esp-idf\components\esptool_py\esptool\esptool.py", line 115, in get_default_connected_device
_esp = chip_class(each_port, initial_baud, trace)
File "d:\ESP32\idf\esp-idf\components\esptool_py\esptool\esptool.py", line 345, in __init__
self._port = serial.serial_for_url(port)
File "d:\ESP32\tools\python_env\idf4.4_py3.8_env\lib\site-packages\serial\__init__.py", line 90, in serial_for_url
instance.open()
File "d:\ESP32\tools\python_env\idf4.4_py3.8_env\lib\site-packages\serial\serialwin32.py", line 80, in open
self._reconfigure_port()
File "d:\ESP32\tools\python_env\idf4.4_py3.8_env\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
raise SerialException(
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, '连到系统上的设备没有发挥作用。', None, 31)
* 终端进程“d:\ESP32\tools\python_env\idf4.4_py3.8_env\Scripts\python.exe 'd:\ESP32\idf\esp-idf\components\esptool_py\esptool\esptool.py',
'-p', 'COM20', '-b', '460800', '--before', 'default_reset', '--after', 'hard_reset', '--chip', 'esp32s3', 'write_flash', '--flash_mode', 'dio', '
--flash_freq', '80m', '--flash_size', '16MB', '0x0', 'bootloader/bootloader.bin', '0x10000', 'lv_demos.bin', '0x8000',
'partition_table/partition-table.bin'”已终止,退出代码: 1。
解决方法