Arduino开发板上传程序失败的解决办法

使用Uno开发板,通过Arduino IDE编写完程序点击上传按钮,程序能够顺利编译,但是程序上传过程中出现如下报错:

Sketch uses 5,316 bytes (16%) of program storage space. Maximum is 32,256 bytes.
Global variables use 435 bytes (21%) of dynamic memory, leaving 1,613 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

经过更新驱动,按reset按钮上传等方法尝试都没有解决问题,最后通过重刷开发板bootloader解决了这个问题:
具体操作如下:

  1. 使用USB tiny ISP连接开发板ICSP接口
  2. 安装USB tiny ISP的驱动,在电脑的设备管理器中查看是否能够正确识别到USB tiny ISP,如果识别到会有USB tiny ISP一项出现。
  3. USB口连接USB tiny ISP的USB接口。
  4. 在Arduino IDE菜单中Tools->Programmer一项确认选中USBtinyISP一项。
  5. 在Arduino IDE菜单中选择burn bootloader一项进行bootloader的烧录。
  6. 等待烧录完成,如无报错重新用USB口连接到Uno上的USB口进行程序上传测试,完成。

如果上述解决办法依旧无法解决,请参考官方解决办法,逐一排查错误:
Why I can’t upload my programs to the Arduino board?

你可能感兴趣的:(Arduino,上传错误,arduino,问题)