以下是端口和主板: Arduino Nano[atmega328] com3 测试程序:亮一个LED灯
错误代码:
```arduino --board arduino:avr:nano:cpu=atmega328 --save-prefs
arduino -v --board arduino:avr:nano:cpu=atmega328 --pref build.path=mixlyBuild --upload --port COM3 "G:\Mixly0.999_For_ArduBits_WIN_V4.6/testArduino/testArduino.ino"
G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\arduino-builder -dump-prefs -logger=machine -hardware G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware -tools G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\tools-builder -tools G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -built-in-libraries G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\libraries -libraries C:\Users\Administrator\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10807 -build-path G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild -warnings=null -prefs=build.path=mixlyBuild -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avrdude.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -verbose G:\Mixly0.999_For_ArduBits_WIN_V4.6\testArduino\testArduino.ino
G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\arduino-builder -compile -logger=machine -hardware G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware -tools G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\tools-builder -tools G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -built-in-libraries G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\libraries -libraries C:\Users\Administrator\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10807 -build-path G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild -warnings=null -prefs=build.path=mixlyBuild -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avrdude.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr -verbose G:\Mixly0.999_For_ArduBits_WIN_V4.6\testArduino\testArduino.ino
Using board 'nano' from platform in folder: G:\Mixly0.999_For_ArduBits_WIN_V4.6\arduino-1.8.7\hardware\arduino\avr
Using core 'arduino' from platform in folder: G:\Mixly0.999_For_ArduBits_WIN_V4.6\arduino-1.8.7\hardware\arduino\avr
Detecting libraries used...
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\.\\arduino-1.8.7\\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=10807 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IG:\\Mixly0.999_For_ArduBits_WIN_V4.6\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-IG:\\Mixly0.999_For_ArduBits_WIN_V4.6\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\mixlyBuild\\sketch\\testArduino.ino.cpp" -o nul
Generating function prototypes...
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\.\\arduino-1.8.7\\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=10807 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IG:\\Mixly0.999_For_ArduBits_WIN_V4.6\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-IG:\\Mixly0.999_For_ArduBits_WIN_V4.6\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\mixlyBuild\\sketch\\testArduino.ino.cpp" -o "G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\mixlyBuild\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\arduino-1.8.7\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\mixlyBuild\\preproc\\ctags_target_for_gcc_minus_e.cpp"
正在编译项目...
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\.\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IG:\\Mixly0.999_For_ArduBits_WIN_V4.6\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-IG:\\Mixly0.999_For_ArduBits_WIN_V4.6\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\mixlyBuild\\sketch\\testArduino.ino.cpp" -o "G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\mixlyBuild\\sketch\\testArduino.ino.cpp.o"
Compiling libraries...
Compiling core...
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\wiring_pulse.S.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\WInterrupts.c.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\wiring_analog.c.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\wiring_pulse.c.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\hooks.c.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\wiring_digital.c.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\wiring.c.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\wiring_shift.c.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\HardwareSerial.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\Tone.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\HardwareSerial1.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\CDC.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\HardwareSerial2.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\IPAddress.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\WMath.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\PluggableUSB.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\HardwareSerial0.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\WString.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\Print.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\USBCore.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\HardwareSerial3.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\abi.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\new.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\main.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\Stream.cpp.o
使用已经编译的文件:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild\core\core.a
Linking everything together...
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\.\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o mixlyBuild/testArduino.ino.elf "G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\mixlyBuild\\sketch\\testArduino.ino.cpp.o" "mixlyBuild/core\\core.a" -LmixlyBuild -lm
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\.\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 mixlyBuild/testArduino.ino.elf mixlyBuild/testArduino.ino.eep
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\.\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom mixlyBuild/testArduino.ino.elf mixlyBuild/testArduino.ino.hex
"G:\\Mixly0.999_For_ArduBits_WIN_V4.6\\.\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-size" -A mixlyBuild/testArduino.ino.elf
项目使用了 724 字节,占用了 (2%) 程序存储空间。最大为 30720 字节。
全局变量使用了9字节,(0%)的动态内存,余留2039字节局部变量。最大为2048字节。
G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr/bin/avrdude -CG:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:G:\Mixly0.999_For_ArduBits_WIN_V4.6\mixlyBuild/testArduino.ino.hex:i
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 "G:\Mixly0.999_For_ArduBits_WIN_V4.6\.\arduino-1.8.7\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb4
avrdude done. Thank you.
上传失败!
你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答
本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。
因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。