ARDUINO 上传失败:上传错误:退出状态 2常见原因及解决方法Failed uploading: uploading error: exit status

前言:

在这里插入图片描述

串口监视器可显示各种ESP32打印信息

下述均为USB TYPEC 数据线正常的情况下的报错,如果数据线或串口有问题

原因1:无法连接到ESP32:串行数据流停止:可能存在串行噪音或损坏

解决方法:ESP32电路板是否供电?电压是否正常?给电路板重新上电。

Sketch uses 297485 bytes (22%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20352 bytes (6%) of dynamic memory, leaving 307328 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port COM9
Connecting…
A fatal error occurred: Failed to connect to ESP32: Serial data stream stopped: Possible serial noise or corruption.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2

Sketch 使用 297485 字

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值