大家帮我看看为什么上传不到arduino版上-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 783|回复: 2

[已解决] 大家帮我看看为什么上传不到arduino版上

[复制链接]
发表于 2021-10-31 13:35 | 显示全部楼层 |阅读模式
Arduino:1.8.16 (Windows 10), 开发板:"Arduino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Administrator\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365 -warnings=none -build-cache C:\Users\ADMINI~1\AppData\Local\Temp\arduino_cache_726905 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Administrator\Desktop\sketch_oct30b\sketch_oct30b.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Administrator\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365 -warnings=none -build-cache C:\Users\ADMINI~1\AppData\Local\Temp\arduino_cache_726905 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Administrator\Desktop\sketch_oct30b\sketch_oct30b.ino

Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o nul

Alternatives for Wire.h: [Wire@1.0]

ResolveLibrary(Wire.h)

  -> candidates: [Wire@1.0]

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o nul

Alternatives for LiquidCrystal_I2C.h: [LiquidCrystal_I2C@1.1.2]

ResolveLibrary(LiquidCrystal_I2C.h)

  -> candidates: [LiquidCrystal_I2C@1.1.2]

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\LiquidCrystal_I2C" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o nul

Alternatives for SPI.h: [SPI@1.0]

ResolveLibrary(SPI.h)

  -> candidates: [SPI@1.0]

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\LiquidCrystal_I2C" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o nul

Alternatives for Adafruit_GFX.h: [Adafruit-GFX-Library-master@1.1.5]

ResolveLibrary(Adafruit_GFX.h)

  -> candidates: [Adafruit-GFX-Library-master@1.1.5]

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\LiquidCrystal_I2C" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit-GFX-Library-master" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o nul

Alternatives for Adafruit_SSD1306.h: [Adafruit_SSD1306@2.4.6]

ResolveLibrary(Adafruit_SSD1306.h)

  -> candidates: [Adafruit_SSD1306@2.4.6]

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\LiquidCrystal_I2C" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit-GFX-Library-master" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_SSD1306" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o nul

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\Wire.cpp

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src\SPI.cpp

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Adafruit-GFX-Library-master\Adafruit_GFX.cpp

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Adafruit-GFX-Library-master\glcdfont.c

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp

Generating function prototypes...

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\LiquidCrystal_I2C" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit-GFX-Library-master" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_SSD1306" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\preproc\\ctags_target_for_gcc_minus_e.cpp"

正在编译项目...

"C:\\Program Files (x86)\\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=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\LiquidCrystal_I2C" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit-GFX-Library-master" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_SSD1306" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp" -o "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp.o"

Compiling libraries...

Compiling library "Wire"

使用已经编译的文件:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365\libraries\Wire\Wire.cpp.o

使用已经编译的文件:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365\libraries\Wire\utility\twi.c.o

Compiling library "LiquidCrystal_I2C"

使用已经编译的文件:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp.o

Compiling library "SPI"

使用已经编译的文件:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365\libraries\SPI\SPI.cpp.o

Compiling library "Adafruit-GFX-Library-master"

使用已经编译的文件:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365\libraries\Adafruit-GFX-Library-master\glcdfont.c.o

使用已经编译的文件:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365\libraries\Adafruit-GFX-Library-master\Adafruit_GFX.cpp.o

Compiling library "Adafruit_SSD1306"

使用已经编译的文件:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp.o

Compiling core...

Using precompiled core: C:\Users\ADMINI~1\AppData\Local\Temp\arduino_cache_726905\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a

Linking everything together...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365/sketch_oct30b.ino.elf" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\sketch\\sketch_oct30b.ino.cpp.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\libraries\\LiquidCrystal_I2C\\LiquidCrystal_I2C.cpp.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\libraries\\Adafruit-GFX-Library-master\\glcdfont.c.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\libraries\\Adafruit-GFX-Library-master\\Adafruit_GFX.cpp.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365\\libraries\\Adafruit_SSD1306\\Adafruit_SSD1306.cpp.o" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365/..\\arduino_cache_726905\\core\\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365" -lm

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365/sketch_oct30b.ino.elf" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365/sketch_oct30b.ino.eep"

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365/sketch_oct30b.ino.elf" "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365/sketch_oct30b.ino.hex"

使用 1.0  版本的库 Wire 在文件夹: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire

使用 1.1.2  版本的库 LiquidCrystal_I2C 在文件夹: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal_I2C

使用 1.0  版本的库 SPI 在文件夹: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI

使用 1.1.5  版本的库 Adafruit-GFX-Library-master 在文件夹: C:\Program Files (x86)\Arduino\libraries\Adafruit-GFX-Library-master

使用 2.4.6  版本的库 Adafruit_SSD1306 在文件夹: C:\Program Files (x86)\Arduino\libraries\Adafruit_SSD1306

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\arduino_build_695365/sketch_oct30b.ino.elf"

项目使用了 17616 字节,占用了 (54%) 程序存储空间。最大为 32256 字节。

全局变量使用了604字节,(29%)的动态内存,余留1444字节局部变量。最大为2048字节。

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_695365/sketch_oct30b.ino.hex:i



avrdude: Version 6.3-20190619

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM4

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

上传项目出错

avrdude: ser_open(): can't open device "\\.\COM4": ϵͳ�Ҳ���ָ�����ļ���






avrdude done.  Thank you.




发表于 2021-10-31 16:42 | 显示全部楼层
打不开串口,串口被占用或者选错
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 21:40 , Processed in 0.075828 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表