打印
[技术讨论]

avrdude:stk500_getsync() 尝试 10 次中的 1 次:未同步:resp=0x00

[复制链接]
470|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
丙丁先生|  楼主 | 2024-11-12 14:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\Administrator\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\sketch\MeArm_Servo_Adj.ino.cpp -o nul
Alternatives for Servo.h: [Servo@1.2.2]
ResolveLibrary(Servo.h)
  -> candidates: [Servo@1.2.2]
C:\Users\Administrator\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\sketch\MeArm_Servo_Adj.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\avr\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\mbed\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\megaavr\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\nrf52\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\renesas\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\sam\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\samd\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\stm32f4\Servo.cpp
Using cached library dependencies for file: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src\xmc\Servo.cpp
Generating function prototypes...
C:\Users\Administrator\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo\src C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\sketch\MeArm_Servo_Adj.ino.cpp -o C:\Users\Administrator\AppData\Local\Temp\1965943830\sketch_merged.cpp
C:\Users\Administrator\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\Administrator\AppData\Local\Temp\1965943830\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\Administrator\\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\libraries\\Servo\\src" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\sketch\\MeArm_Servo_Adj.ino.cpp" -o "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\sketch\\MeArm_Servo_Adj.ino.cpp.o"
Compiling libraries...
Compiling library "Servo"
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\avr\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\mbed\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\megaavr\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\nrf52\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\sam\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\samd\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\xmc\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\renesas\Servo.cpp.o
Using previously compiled file: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\libraries\Servo\stm32f4\Servo.cpp.o
Compiling core...
Using precompiled core: C:\Users\Administrator\AppData\Local\Temp\arduino\cores\arduino_avr_uno_7fb5471fc2d8c99e6fbed04e3956bdec\core.a
Linking everything together...
"C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/MeArm_Servo_Adj.ino.elf" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\sketch\\MeArm_Servo_Adj.ino.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\avr\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\mbed\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\megaavr\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\nrf52\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\renesas\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\sam\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\samd\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\stm32f4\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF\\libraries\\Servo\\xmc\\Servo.cpp.o" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/..\\..\\cores\\arduino_avr_uno_7fb5471fc2d8c99e6fbed04e3956bdec\\core.a" "-LC:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF" -lm
"C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/MeArm_Servo_Adj.ino.elf" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/MeArm_Servo_Adj.ino.eep"
"C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/MeArm_Servo_Adj.ino.elf" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/MeArm_Servo_Adj.ino.hex"

Using library Servo at version 1.2.2 in folder: C:\Users\Administrator\AppData\Local\Arduino15\libraries\Servo
"C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino\\sketches\\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/MeArm_Servo_Adj.ino.elf"
Sketch uses 3078 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 234 bytes (11%) of dynamic memory, leaving 1814 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM6" -b115200 -D "-Uflash:w:C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\F1F49D26F9E0BBAC36EDBCD5AF4D9EEF/MeArm_Servo_Adj.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:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

使用端口 : COM6
使用程序员 : arduino
覆盖波特率 : 115200
avrdude:stk500_getsync() 尝试 10 次中的 1 次:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 2/10:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 3/10:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 4/10:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 5/10:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 6 次(共 10 次):未同步:resp=0x00
avrdude:stk500_getsync() 尝试 7/10:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 10 次中的 8 次:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 10 次中的 9 次:未同步:resp=0x00
avrdude:stk500_getsync() 尝试 10 次中的 10 次:未同步:resp=0x00

avrdude 完成。谢谢。


在调试UNO时红字,如上,舵机不转,求解。

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

616

主题

2137

帖子

5

粉丝