这是我尝试运行 ARDUINO 程序时遇到的主要错误。完整的错误列表如下:
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 灯闪烁。我几乎尝试了网络上的所有内容。问题是什么?
Mega 2560 出现此错误的另一个可能原因是您的代码连续出现三个感叹号。也许在最近添加的字符串中。
连续 3 个爆炸标记会导致 Mega 2560 引导加载程序进入监控模式,无法完成编程。
"!!!"
要修复此问题,请拔下 Arduino USB 以重置 COM 端口,然后仅使用两个感叹号或之间有空格或其他内容重新编译。然后重新连接 Arduino 并照常编程。
是的,昨天它咬了我,今天我找到了罪魁祸首。这是包含更多信息的链接:http://forum.arduino.cc/index.php?topic=132595.0 http://forum.arduino.cc/index.php?topic=132595.0
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)