Arduino烧录程序出现avrdude: stk500_getsync() attempt x(1-10) of 10错误

1.问题

在使用最普通的Arduino UNO用USB烧写通过串口烧写程序时,本来很正常可以使用的,但是突然烧录就一直出现以下错误:

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4d
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x4f
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x54
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x3a
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x4d
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6e
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x69
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x74

2.解决办法

查看一下Arduino的串口引脚是不是接了其他的USB转串口的模块,我是使用USB转串口的模块也连接到了Arduino上,因为要使用其他的串口助手定时给Arduino发送数据。
这样就导致使用Arduino原本带的USB转串口烧录程序的时候,可能高低电平无法控制,因为还有一个串口模块连接到了这上面。
所以下载程序的时候,将串口引脚上的线拔掉即可。

你可能感兴趣的:(单片机嵌入式笔记)