make flash下载程序出错

lujinming
Posts: 9
Joined: Wed Mar 13, 2019 6:36 am

make flash下载程序出错

Postby lujinming » Wed Mar 20, 2019 1:54 pm

大家好,我最近遇到通过命令make flash下载时出现问题,如下是错误的提示的代码:
$ make flash
Flashing binaries to serial port /dev/ttyS2 (app at offset 0x10000 )...
esptool.py v2.6-beta1
Serial port /??/COM3
Traceback (most recent call last):
File "D:/msys32/home/jinming/esp/esp-adf/esp-adf/esp-idf/components/esptool_py/esptool/esptool.py", line 2865, in <module>
_main()
File "D:/msys32/home/jinming/esp/esp-adf/esp-adf/esp-idf/components/esptool_py/esptool/esptool.py", line 2858, in _main
main()
File "D:/msys32/home/jinming/esp/esp-adf/esp-adf/esp-idf/components/esptool_py/esptool/esptool.py", line 2565, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "D:/msys32/home/jinming/esp/esp-adf/esp-adf/esp-idf/components/esptool_py/esptool/esptool.py", line 213, in __init__
self._port = serial.serial_for_url(port)
File "D:/msys32/mingw32/lib/python2.7/site-packages/serial/__init__.py", line 88, in serial_for_url
instance.open()
File "D:/msys32/mingw32/lib/python2.7/site-packages/serial/serialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port '/??/COM3': WindowsError(3, '\xcf\xb5\xcd\xb3\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc2\xb7\xbe\xb6\xa1\xa3')
make: *** [/home/jinming/esp/esp-adf/esp-adf/esp-idf/components/esptool_py/Makefile.projbuild:63:flash] 错误 1

jinming@DESKTOP-E9DUF8B MINGW32 ~/esp/play_mp3
这个是由于端口的错误吗?我在 /dev文件夹中 可以看到我将USB转UART USB线拔掉ttyS2消失,端口号没错才对,这个问题要怎么解决?

lujinming
Posts: 9
Joined: Wed Mar 13, 2019 6:36 am

Re: make flash下载程序出错

Postby lujinming » Wed Mar 20, 2019 1:58 pm

已经解决了,将ttyS2改成COM3就行了,谢谢大家的关注。

Who is online

Users browsing this forum: No registered users and 8 guests