独立的Arduino无法上传程序

3

我正在尝试制作自己的Arduino,但上传代码时遇到了一些问题。

我相信我的构建是正确的,因为当我按下复位按钮时,13号引脚上的LED会闪烁3次。

上传时出现的错误是:

Arduino: 1.6.0 (Windows 8), Board: "Arduino Uno"

Sketch uses 450 bytes (1%) of program storage space. Maximum is 32,256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x01
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

我的操作系统是Windows 8,我想要使用的芯片是Atmega328P-PU。

我已经检查了端口和驱动程序,并尝试在上传时按下复位按钮。

2个回答

2

为了解决此问题,首先确保选择:

- Tool > boad > Arduino uno
- Tool > port > COM X (the one available)

通常情况下,您不需要按下复位按钮,因为在上传(使用复位引脚)之前,Arduino IDE会自动执行该操作。但是,如果您仍然遇到同步问题,请尝试在编译过程结束后立即按下复位按钮(即上传过程开始时)。如果您仍然遇到困难,请尝试降级到Arduino IDE 1.0.6。 http://arduino.cc/en/Main/OldSoftwareReleases

谢谢您,“尝试在编译过程之后立即按下重置按钮”这一方法解决了问题! - Oncel Umut TURER

0

我在使用VirtualBox的Windows 7上传代码到Arduino Uno时遇到了同样的错误。我重新启动了电脑,再次尝试,第一次就成功了,但后来的尝试又出现了同样的错误。所以现在我正在禁用COM端口,关闭Arduino IDE,启用COM端口,然后重新启动IDE。虽然这很繁琐,但我现在必须这么做。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接