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

查看:90
本文介绍了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是MEGA2560.它显示在设备管理器中,并且我所有的连接都是正确的.绿色的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个爆炸声使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天全站免登陆