You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

DOIT ESP32 DEVKITV1上传WiFi扫描示例代码时出现写入超时错误

ESP32 DOIT DEVKITV1 上传代码时出现Write timeout错误的排查方案

你遇到的错误信息如下:

Sketch uses 756385 bytes (57%) of program storage space. Maximum is 1310720 bytes.
Global variables use 43716 bytes (13%) of dynamic memory, leaving 283964 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM4
Connecting...

A serial exception error occurred: Write timeout
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 1

针对这个串口写入超时问题,可按以下步骤排查:

  • 检查物理连接

    • 确认使用的是带数据传输功能的USB线,避免使用仅充电的线材,可更换其他数据线测试。
    • 重新插拔USB线,确保开发板与电脑的连接牢固无松动。
    • 若使用外接USB转串口模块,需保证TX/RX交叉连接(ESP32的TX接模块RX,RX接模块TX),且两者共地(GND引脚相连)。
  • 手动触发上传模式

    • 点击Arduino IDE的上传按钮后,立刻按住开发板上的BOOT/FLASH按键,直到串口输出"Connecting..."字样后再松开,强制进入上传模式。
  • 验证串口驱动与端口

    • 打开设备管理器,检查对应COM口(如COM4)的串口设备是否正常(无黄色感叹号),若有异常则重新安装对应驱动(CH340或CP2102,根据开发板USB芯片型号选择)。
    • 在Arduino IDE的「工具」菜单中,确认已选中正确的串口端口和开发板型号(DOIT ESP32 DEVKIT V1)。
  • 调整上传参数

    • 在「工具」->「上传波特率」中,选择更低的波特率(如115200),降低数据传输速率以避免超时。

内容的提问来源于stack exchange,提问作者Isha Tripathi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.23 14:24:56