上传到Arduino报错

问题描述 投票:0回答:2

我正在尝试将闪烁代码上传到 Arduino,但出现此错误。 有人可以帮助我吗?

  Arduino: 1.6.9 (Mac OS X), Board: "Arduino Duemilanove or Diecimila, ATmega328"

Sketch uses 1,066 bytes (3%) of program storage space. Maximum is 30,720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x04
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfc
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x8a
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x88

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10
avrdude: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x01
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x10
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"
option enabled in File -> Preferences.

-这是我要上传的代码。它直接来自 Arduino 示例。

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}
arduino
2个回答
2
投票

“avrdude”实际上无能为力,但您可以将类型更改为“AVR ISP”: enter image description here


0
投票

您可能从 AliExpress 或其他地方购买了 Arduino 克隆版。有时它们有效,有时则无效。如今,您可以在 90 天内免费退货(在阿里)。测试一下,如果出现错误,只需将其退回,然后从其他卖家那里购买即可。如果您发现卖家有可用的克隆产品,请购买 10 个。这就是我所做的。

不要浪费你的时间。

© www.soinside.com 2019 - 2024. All rights reserved.