Arduino IDE在编译时正常,但是无法上传,总是显示找到无效库。
Arduino:1.8.8 (Windows 7)
开发板:"Arduino Nano ATmega328P"
警告:库 Mozzi 中的分类 'Audio' 不可用。设置为 'Uncategorized'
项目使用了 2750 字节,占用了 (8%) 程序存储空间。最大为 30720 字节。
全局变量使用了40字节,(1%)的动态内存,余留2008字节局部变量。最大为2048字节。
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x74
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x74
上传出错。查看
http://www.arduino.cc/en/Guide/Troubleshooting#upload 获取建议。
找到无效库在 F:ArduinolibrariesAP_HAL_PX4: no headers files (.h) found in F:ArduinolibrariesAP_HAL_PX4
找到无效库在 F:ArduinolibrariesDesktop: no headers files (.h) found in F:ArduinolibrariesDesktop
找到无效库在 F:Arduinolibrariesdoc: no headers files (.h) found in F:Arduinolibrariesdoc
找到无效库在 F:Arduinolibrariesgrbl-1.1e: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1e
找到无效库在 F:Arduinolibrariesgrbl-1.1f: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1f
找到无效库在 F:ArduinolibrariesSoftwareSerial: no headers files (.h) found in F:ArduinolibrariesSoftwareSerial
找到无效库在 F:ArduinolibrariesAP_HAL_PX4: no headers files (.h) found in F:ArduinolibrariesAP_HAL_PX4
找到无效库在 F:ArduinolibrariesDesktop: no headers files (.h) found in F:ArduinolibrariesDesktop
找到无效库在 F:Arduinolibrariesdoc: no headers files (.h) found in F:Arduinolibrariesdoc
找到无效库在 F:Arduinolibrariesgrbl-1.1e: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1e
找到无效库在 F:Arduinolibrariesgrbl-1.1f: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1f
找到无效库在 F:ArduinolibrariesSoftwareSerial: no headers files (.h) found in F:ArduinolibrariesSoftwareSerial
这是更为详细的反馈
Arduino:1.8.8 (Windows 7) 开发板:"Arduino Nano ATmega328P"
F:Arduinoarduino-builder -dump-prefs -logger=machine -hardware F:Arduinohardware -tools F:Arduinotools-builder -tools F:Arduinohardwaretoolsavr -built-in-libraries F:Arduinolibraries -libraries C:UsershjzDocumentsArduinolibraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10808 -build-path C:UsershjzAppDataLocalTemparduino_build_368622 -warnings=none -build-cache C:UsershjzAppDataLocalTemparduino_cache_415418 -prefs=build.warn_data_percentage=75 -prefs=run
time.tools.avr-gcc.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.avrdude.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.arduinoOTA.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.arduinoOTA-1.2.1.path=F:Arduinohardwaretoolsavr -verbose D:Arduino程序lamp_wsrlamp_wsr.ino
F:Arduinoarduino-builder -compile -logger=machine -hardware F:Arduinohardware -tools F:Arduinotools-builder -tools F:Arduinohardwaretoolsavr -built-in-libraries F:Arduinolibraries -libraries C:UsershjzDocumentsArduinolibraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10808 -build-path C:UsershjzAppDataLocalTemparduino_build_368622 -warnings=none -build-cache C:UsershjzAppDataLocalTemparduino_cache_415418 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.avrdude.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.arduinoOTA.path=F:Arduinohardwaretoolsavr -prefs=runtime.tools.arduinoOTA-1.2.1.path=F:Arduinohardwaretoolsavr -verbose D:Arduino程序lamp_wsrlamp_wsr.ino
Using board 'nano' from platform in folder: F:Arduinohardwarearduinoavr
Using core 'arduino' from platform in folder: F:Arduinohardwarearduinoavr
警告:库 Mozzi 中的分类 'Audio' 不可用。设置为 'Uncategorized'
Detecting libraries used...
"F:\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IF:\Arduino\hardware\arduino\avr\cores\arduino" "-IF:\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\sketch\lamp_wsr.ino.cpp" -o nul
"F:\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IF:\Arduino\hardware\arduino\avr\cores\arduino" "-IF:\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IF:\Arduino\libraries\Adafruit_NeoPixel" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\sketch\lamp_wsr.ino.cpp" -o nul
Using cached library dependencies for file: F:ArduinolibrariesAdafruit_NeoPixelAdafruit_NeoPixel.cpp
Using cached library dependencies for file: F:ArduinolibrariesAdafruit_NeoPixelesp8266.c
Generating function prototypes...
"F:\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IF:\Arduino\hardware\arduino\avr\cores\arduino" "-IF:\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IF:\Arduino\libraries\Adafruit_NeoPixel" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\sketch\lamp_wsr.ino.cpp" -o "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\preproc\ctags_target_for_gcc_minus_e.cpp"
"F:\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\preproc\ctags_target_for_gcc_minus_e.cpp"
正在编译项目...
"F:\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IF:\Arduino\hardware\arduino\avr\cores\arduino" "-IF:\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IF:\Arduino\libraries\Adafruit_NeoPixel" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\sketch\lamp_wsr.ino.cpp" -o "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\sketch\lamp_wsr.ino.cpp.o"
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xfe
Compiling libraries...
Compiling library "Adafruit_NeoPixel"
使用已经编译的文件:C:UsershjzAppDataLocalTemparduino_build_368622librariesAdafruit_NeoPixelesp8266.c.o
使用已经编译的文件:C:UsershjzAppDataLocalTemparduino_build_368622librariesAdafruit_NeoPixelAdafruit_NeoPixel.cpp.o
Compiling core...
Using precompiled core: C:UsershjzAppDataLocalTemparduino_cache_415418corecore_arduino_avr_nano_cpu_atmega328_5b1c48e08cbbd63b2c664db64afe1f98.a
linking everything together...
"F:\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl--gc-sections -mmcu=atmega328p -o "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622/lamp_wsr.ino.elf" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\sketch\lamp_wsr.ino.cpp.o" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp.o" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622\libraries\Adafruit_NeoPixel\esp8266.c.o" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622/..\arduino_cache_415418\core\core_arduino_avr_nano_cpu_atmega328_5b1c48e08cbbd63b2c664db64afe1f98.a" "-LC:\Users\hjz\AppData\Local\Temp\arduino_build_368622" -lm
"F:\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=allocload --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622/lamp_wsr.ino.elf" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622/lamp_wsr.ino.eep"
"F:\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622/lamp_wsr.ino.elf" "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622/lamp_wsr.ino.hex"
使用 1.0.6 版本的库 Adafruit_NeoPixel 在文件夹: F:ArduinolibrariesAdafruit_NeoPixel
"F:\Arduino\hardware\tools\avr/bin/avr-size" -A "C:\Users\hjz\AppData\Local\Temp\arduino_build_368622/lamp_wsr.ino.elf"
项目使用了 2750 字节,占用了 (8%) 程序存储空间。最大为 30720 字节。
全局变量使用了40字节,(1%)的动态内存,余留2008字节局部变量。最大为2048字节。
F:Arduinohardwaretoolsavr/bin/avrdude -CF:Arduinohardwaretoolsavr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:UsershjzAppDataLocalTemparduino_build_368622/lamp_wsr.ino.hex:i
上传出错。查看
http://www.arduino.cc/en/Guide/Troubleshooting#upload 获取建议。
找到无效库在 F:ArduinolibrariesAP_HAL_PX4: no headers files (.h) found in F:ArduinolibrariesAP_HAL_PX4
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean
http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "F找到无效库在 F:ArduinolibrariesDesktop: no headers files (.h) found in F:ArduinolibrariesDesktop
:Arduinohardwaretoolsavr/etc/avrdude.conf"
Using Port : COM4
Using Programmer : arduino
Overriding Baud Rate : 115200
找到无效库在 F:Arduinolibrariesdoc: no headers files (.h) found in F:Arduinolibrariesdoc
找到无效库在 F:Arduinolibrariesgrbl-1.1e: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1e
找到无效库在 F:Arduinolibrariesgrbl-1.1f: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1f
找到无效库在 F:ArduinolibrariesSoftwareSerial: no headers files (.h) found in F:ArduinolibrariesSoftwareSerial
找到无效库在 F:ArduinolibrariesAP_HAL_PX4: no headers files (.h) found in F:ArduinolibrariesAP_HAL_PX4
找到无效库在 F:ArduinolibrariesDesktop: no headers files (.h) found in F:ArduinolibrariesDesktop
找到无效库在 F:Arduinolibrariesdoc: no headers files (.h) found in F:Arduinolibrariesdoc
找到无效库在 F:Arduinolibrariesgrbl-1.1e: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1e
找到无效库在 F:Arduinolibrariesgrbl-1.1f: no headers files (.h) found in F:Arduinolibrariesgrbl-1.1f
找到无效库在 F:ArduinolibrariesSoftwareSerial: no headers files (.h) found in F:ArduinolibrariesSoftwareSerial
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x11
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x11
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x11
向大神请教,急