首页 > 解决方案 > Arduino:1.8.14(Windows 10),板:“Arduino Uno”

问题描述

Arduino:1.8.14(Windows 10),板:“Arduino Uno”

C:\Users\hp\Desktop\arduino-1.8.14\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\hp\Desktop\arduino-1.8.14\hardware -hardware C:\Users \hp\AppData\Local\Arduino15\packages -tools C:\Users\hp\Desktop\arduino-1.8.14\tools-builder -tools C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools \avr -tools C:\Users\hp\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\hp\Desktop\arduino-1.8.14\libraries -libraries C:\Users\hp\Documents \Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0000_0000 -ide-version=10814 -build-path C:\Users\hp\AppData\Local\Temp\arduino_build_879372 -warnings=none -build-cache C:\Users\hp\AppData\Local\Temp\arduino_cache_864642 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\hp\AppData\Local\Arduino15\packages\ arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=运行时。tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users \hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs= runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -verbose C:\Users\hp\Desktop\2nd semister\embeded technology和 iot\sketch_jun10_2nd_one\sketch_jun10_2nd_one.ino14\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude .path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\hp\Desktop\arduino -1.8.14\hardware\tools\avr -verbose C:\Users\hp\Desktop\2nd semister\embeded technology and iot\sketch_jun10_2nd_one\sketch_jun10_2nd_one.ino14\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude .path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\hp\Desktop\arduino -1.8.14\hardware\tools\avr -verbose C:\Users\hp\Desktop\2nd semister\embeded technology and iot\sketch_jun10_2nd_one\sketch_jun10_2nd_one.ino

C:\Users\hp\Desktop\arduino-1.8.14\arduino-builder -compile -logger=machine -hardware C:\Users\hp\Desktop\arduino-1.8.14\hardware -hardware C:\Users\hp \AppData\Local\Arduino15\packages -tools C:\Users\hp\Desktop\arduino-1.8.14\tools-builder -tools C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -tools C:\Users\hp\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\hp\Desktop\arduino-1.8.14\libraries -libraries C:\Users\hp\Documents\Arduino \libraries -fqbn=arduino:avr:uno -vid-pid=0000_0000 -ide-version=10814 -build-path C:\Users\hp\AppData\Local\Temp\arduino_build_879372 -warnings=none -build-cache C: \Users\hp\AppData\Local\Temp\arduino_cache_864642 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\hp\AppData\Local\Arduino15\packages\arduino\工具\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools。avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs =runtime.tools.arduinoOTA.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\hp \Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime。 tools.avrdude-6.3.0-arduino17.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -verbose C:\Users\hp\Desktop\2nd semister\嵌入式技术和物联网\sketch_jun10_2nd_one\sketch_jun10_2nd_one.ino14\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude .path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\hp\Desktop\arduino -1.8.14\hardware\tools\avr -verbose C:\Users\hp\Desktop\2nd semister\embeded technology and iot\sketch_jun10_2nd_one\sketch_jun10_2nd_one.ino14\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude .path=C:\Users\hp\Desktop\arduino-1.8.14\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\hp\Desktop\arduino -1.8.14\hardware\tools\avr -verbose C:\Users\hp\Desktop\2nd semister\embeded technology and iot\sketch_jun10_2nd_one\sketch_jun10_2nd_one.ino

在文件夹中使用平台中的板“uno”:C:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr

在文件夹中使用来自平台的核心“arduino”:C:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr

检测使用的库...

“C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8。 14\硬件\arduino\avr\variants\standard" "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\sketch\sketch_jun10_2nd_one.ino.cpp" -o nul

生成函数原型...

“C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8。 14\hardware\arduino\avr\variants\standard" "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\sketch\sketch_jun10_2nd_one.ino.cpp" -o "C:\Users\hp\AppData\Local\ Temp\arduino_build_879372\preproc\ctags_target_for_gcc_minus_e.cpp"

"C:\Users\hp\Desktop\arduino-1.8.14\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields =KSTtzns --line-directives "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\preproc\ctags_target_for_gcc_minus_e.cpp"

正在编译草图...

“C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10814 -DARDUINO_AVR_UNO - DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr \variants\standard" "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\sketch\sketch_jun10_2nd_one.ino.cpp" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\sketch\sketch_jun10_2nd_one .ino.cpp.o"

编译库...

编译核心...

“C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc”-c -g -x assembler-with- cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\cores\arduino""- IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\cores\arduino \wiring_pulse.S" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\wiring_pulse.So"

"C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std =gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino -1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\桌面\arduino-1.8.14\hardware\arduino\avr\cores\arduino\WInterrupts.c" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\WInterrupts.co"

"C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std =gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino -1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\桌面\arduino-1.8.14\hardware\arduino\avr\cores\arduino\hooks.c" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\hooks.co"

"C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std =gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino -1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\桌面\arduino-1.8.14\hardware\arduino\avr\cores\arduino\wiring_pulse.c" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\wiring_pulse.co"

"C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std =gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino -1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\桌面\arduino-1.8.14\hardware\arduino\avr\cores\arduino\wiring_analog.c" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\wiring_analog.co"

"C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std =gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino -1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\桌面\arduino-1.8.14\hardware\arduino\avr\cores\arduino\wiring_shift.c" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\wiring_shift.co"

"C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std =gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino -1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\桌面\arduino-1.8.14\hardware\arduino\avr\cores\arduino\wiring.c" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\wiring.co"

"C:\Users\hp\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std =gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10814 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\hp\Desktop\arduino -1.8.14\hardware\arduino\avr\cores\arduino" "-IC:\Users\hp\Desktop\arduino-1.8.14\hardware\arduino\avr\variants\standard" "C:\Users\hp\桌面\arduino-1.8.14\hardware\arduino\avr\cores\arduino\wiring_digital.c" -o "C:\Users\hp\AppData\Local\Temp\arduino_build_879372\core\wiring_digital.co"

cc1.exe:致命错误:无法打开“C:\Users\hp\AppData\Local\Temp\ccy8IlXP.s”进行写入:权限被拒绝

编译终止。

退出状态 1

为板 Arduino Uno 编译错误。

标签: arduino

解决方案


要确认端口存在,请从根目录输入以下内容。

ls /dev/ttyACM0

要设置读/写权限,请输入以下内容

sudo chmod a+rw /dev/ttyACM0

推荐阅读