我正在学习学习物联网硬件的开发环境,写一个Hello Word的演示
教程中是在虚拟机安装Ubuntu系统中演示
我是直接在Windows系统中安装VScode和连接固件
上传时会报错,系统找不到指定的路径
问题相关代码,请勿粘贴截
Traceback (most recent call last):
File "C:\Users\Administrator.platformio\packages\tool-esptoolpy\esptool.py", line 4582, in
_main()
File "C:\Users\Administrator.platformio\packages\tool-esptoolpy\esptool.py", line 4575, in _main
main()
File "C:\Users\Administrator.platformio\packages\tool-esptoolpy\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:\Users\Administrator.platformio\packages\tool-esptoolpy\esptool.py", line 120, in get_default_connected_device
_esp = chip_class(each_port, initial_baud, trace)
File "C:\Users\Administrator.platformio\packages\tool-esptoolpy\esptool.py", line 313, in init
self.port = serial.serial_for_url(port)
File "C:\Users\Administrator.platformio\penv\lib\site-packages\serial_init.py", line 90, in serial_for_url
instance.open()
File "C:\Users\Administrator.platformio\penv\lib\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 '/dev/ttyUSB1': FileNotFoundError(2, '系统找不到指定的路径。', None, 3)
*** [upload] Error 1
========================================================================================= [FAILED] Took 125.33 seconds =========================================================================================终端进程“C:\Users\Administrator.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'”已终止,退出代码: 1。