vs code烧写程序时esptool.py报错

dusyMK
Posts: 1
Joined: Sat Jul 31, 2021 3:55 am

vs code烧写程序时esptool.py报错

Postby dusyMK » Sat Jul 31, 2021 4:00 am

环境:vs code + wsl + esp-idf插件
硬件环境:ESP32-WROVER-E
程序:BLINK
终端信息:
> Executing task: /home/mkkk/.espressif/python_env/idf4.3_py3.8_env/bin/python /home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyS3 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 blink.bin 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin <

esptool.py v3.1-dev
Serial port /dev/ttyS3
Connecting.....
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 78:e3:6d:cd:08:cc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Traceback (most recent call last):
File "/home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 4535, in <module>
_main()
File "/home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 4528, in _main
main()
File "/home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 4053, in main
esp.change_baud(args.baud)
File "/home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 149, in inner
return func(*args, **kwargs)
File "/home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 864, in change_baud
self._set_port_baudrate(baud)
File "/home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 334, in _set_port_baudrate
self._port.baudrate = baud
File "/home/mkkk/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/serial/serialutil.py", line 299, in baudrate
self._reconfigure_port()
File "/home/mkkk/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/serial/serialposix.py", line 517, in _reconfigure_port
termios.tcsetattr(
termios.error: (5, 'Input/output error')
终端进程“bash '-c', '/home/mkkk/.espressif/python_env/idf4.3_py3.8_env/bin/python /home/mkkk/esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyS3 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 blink.bin 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin'”已终止,退出代码: 1。

终端将被任务重用,按任意键关闭。

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: vs code烧写程序时esptool.py报错

Postby ESP_Gargamel » Mon Aug 02, 2021 9:21 am

降一下波特率试试。

Who is online

Users browsing this forum: No registered users and 157 guests