avrdude:stk500v2_ReceiveMessage():超时 [英] avrdude: stk500v2_ReceiveMessage(): timeout

查看:41
本文介绍了avrdude:stk500v2_ReceiveMessage():超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我尝试运行 ARDUINO 程序时遇到的主要错误.完整的错误列表如下:

This is the main error that I get when I try to run my ARDUINO program. The full list of errors is as follows:

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

我的代码如下:

int led=13;
void setup()
{
    pinMode(13,OUTPUT);
}

void loop()
{
    digitalWrite(13,HIGH);
    delay(1000);
    digitalWrite(13,LOW);
    delay(1000);
}

我尝试更新驱动程序(它们已完全更新)并下载一些程序.我有 Windows 7,我的 arduino 是 MEGA 2560.它显示在设备管理器中,我的所有连接都是正确的.绿色 PWR 灯亮起,闪烁的 L 灯也亮起.更新时 RX 和 TX 灯闪烁.我几乎尝试了网络上的所有内容.有什么问题?

I have tried updating the drivers (they are fully updated) and downloading some programs. I have Windows 7 and my arduino is a MEGA 2560. It shows up in the Device Manager and all of my connections are correct. The green PWR light is on and so is the flashing L light. The RX and TX lights flash when I update. I have tried almost everything on the web. What is the problem?

推荐答案

Mega 2560 出现此错误的另一个可能原因是您的代码是否连续出现三个感叹号.也许在最近添加的字符串中.

Another possible reason for this error for the Mega 2560 is if your code has three exclamation marks in a row. Perhaps in a recently added string.

连续 3 个 bang 标记导致 Mega 2560 引导加载程序进入无法完成编程的监控模式.

3 bang marks in a row causes the Mega 2560 bootloader to go into Monitor mode from which it can not finish programming.

"!!!" <--- 破坏 Mega 2560 引导加载程序.

"!!!" <--- breaks Mega 2560 bootloader.

要解决此问题,请拔下 Arduino USB 以重置 COM 端口,然后仅使用两个感叹号或中间有空格或其他任何内容重新编译.然后像往常一样重新连接Arduino和编程.

To fix, unplug the Arduino USB to reset the COM port and then recompile with only two exclamation points or with spaces between or whatever. Then reconnect the Arduino and program as usual.

是的,昨天和今天我找到了罪魁祸首.这是包含更多信息的链接:http://forum.arduino.cc/index.php?topic=132595.0

Yes, this bit me yesterday and today I tracked down the culprit. Here is a link with more information: http://forum.arduino.cc/index.php?topic=132595.0

这篇关于avrdude:stk500v2_ReceiveMessage():超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆