MEGA2560芯片avrdude: stk500v2_ReceiveMessage(): timeout问题

文章讲述了作者在自制的ArduinoMEGA2560开发板上遇到的烧录问题,具体表现为avrdudestk500v2_ReceiveMessage()timeout错误。尝试了多种解决方法,包括更换烧录器和调整设置,最后发现是CH340的复位脚电容过大导致无法复位。将电容从104改为22pF后,问题得到解决。该问题可能因不同芯片(如ATMEGA328与MEGA2560)对电容需求不同而产生。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前段时间自制了一块Arduino MEGA2560的开发板,出现一个奇怪的现象:

烧录Arduino固件后,LED闪烁程序正常跑。

第一次烧录覆盖掉原来的LED闪烁程序后也正常。

但是第二次烧录后出现:avrdude: stk500v2_ReceiveMessage(): timeout

然后查找了三篇文章:

avrdude: stk500v2_ReceiveMessage(): timeout, arduino mega2560 上传出错; arduino nano刷bootload后上传出错_mega2560上传无法成果_gis-cc的博客-CSDN博客

arduino avrdude: stk500v2_ReceiveMessage(): timeout错误的解决方法_Zihh的博客-CSDN博客

arduino MEGA 2560 avrdude: stk500v2_ReceiveMessage(): timeout 错误的解决方法_MIRuACLE_的博客-CSDN博客

以及社区的文章:arduino - avrdude: stk500v2_ReceiveMessage(): timeout - Stack Overflow

按照以上四篇文章方法还是出现此问题,然后怀疑是烧录问题,因为我一开始是用uno开发板烧ISP进2560的,于是买了一个USBtinyISP 下载器,还是遇到这个问题。

因为下载是通过CH340转的串口,于是我便测量了一下CH340复位脚

发现烧录后复位根本没起作用,因此怀疑复位脚电容太大导致无法复位

果然翘掉这个电容就好了,不会再出现avrdude: stk500v2_ReceiveMessage(): timeout问题

最终此电容改为22pF。

因为这份原理图是原来用在ATMEGA328芯片上的,也就是Arduino uno的开发板。

而328芯片此处用104电容是没问题的,可以正常烧录,但是到2560会导致无法复位。

Sketch uses 5754 bytes (2%) of program storage space. Maximum is 253952 bytes. Global variables use 422 bytes (5%) of dynamic memory, leaving 7770 bytes for local variables. Maximum is 8192 bytes. avrdude: ser_open(): can't open device "\\.\COM3": �ܾ����ʡ� avrdude: ser_drain(): read error: �����Ч�� avrdude: ser_send(): write error: sorry no info avail avrdude: stk500_send(): failed to send command to serial port avrdude: ser_recv(): read error: �����Ч�� avrdude: stk500v2_ReceiveMessage(): timeout avrdude: ser_send(): write error: sorry no info avail avrdude: stk500_send(): failed to send command to serial port avrdude: ser_recv(): read error: �����Ч�� avrdude: stk500v2_ReceiveMessage(): timeout avrdude: ser_send(): write error: sorry no info avail avrdude: stk500_send(): failed to send command to serial port avrdude: ser_recv(): read error: �����Ч�� avrdude: stk500v2_ReceiveMessage(): timeout avrdude: ser_send(): write error: sorry no info avail avrdude: stk500_send(): failed to send command to serial port avrdude: ser_recv(): read error: �����Ч�� avrdude: stk500v2_ReceiveMessage(): timeout avrdude: ser_send(): write error: sorry no info avail avrdude: stk500_send(): failed to send command to serial port avrdude: ser_recv(): read error: �����Ч�� avrdude: stk500v2_ReceiveMessage(): timeout avrdude: ser_send(): write error: sorry no info avail avrdude: stk500_send(): failed to send command to serial port avrdude: ser_recv(): read error: �����Ч�� avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer Failed uploading: uploading error: exit status 1
最新发布
03-10
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值