0

我正在尝试上传此代码:

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}


void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

对于我的 arduino nano,我收到以下消息:

    Arduino: 1.8.13 (Mac OS X), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

fork/exec /Users/vladimir/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory
Error compiling for board Arduino Nano.


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

有人可以帮我吗?

4

2 回答 2

0

如果您有旧的 Arduino Nano 板,通常会发生此错误。尝试在 Arduino IDE Tools--> Processor --> ATmega328p (Old Bootloader)
中更改处理器 如果错误仍然存​​在,请尝试在列表中选择其他处理器并上传代码。 如果在 IDE 中更改处理器后代码仍未上传,则您的 Arduino Nano 板有可能损坏。



Arduino IDE



于 2020-09-28T06:45:28.870 回答
-1

此错误不是由#includes 引起的。这是由 Arduino IDE 或 Arduino AVR 板安装中的故障引起的。也许尝试重新安装 Arduino IDE

于 2020-09-27T04:36:31.580 回答