求助,正常用arduino ide上转程序没问题,确认驱动都正常,...

2021-10-128889
AI 快速预览详细 收起
本文讨论了在使用 Arduino IDE 烧录程序时遇到的 avrdude: stk500_getsync() not in sync 错误。通过详细的日志分析,发现问题是由于 COM3 端口配置不正确导致的。文章提供了具体的解决步骤,包括检查端口设置和重新配置 avrdude 参数。最终成功解决了烧录失败的问题,确保了项目的顺利进行。
求助,正常用arduino ide上转程序没问题,确认驱动都正常,...图1
  1. C:\Program Files (x86)\Mind+\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I C:\Program Files (x86)\Mind+\Arduino\hardware\arduino\avr\cores\arduino -I C:\Program Files (x86)\Mind+\Arduino\hardware\arduino\avr\variants\eightanaloginputs -I C:\Program Files (x86)\Mind+\Arduino\hardware\arduino\avr\cores\arduino -I C:\Program Files (x86)\Mind+\Arduino\hardware\arduino\avr\variants\standard C:\Users\yun\AppData\Local\DFScratch\cache\dfrobot.ino.cpp -o C:\Users\yun\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o
  2. C:\Program Files (x86)\Mind+\Arduino\hardware\tools\avr\bin\avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o C:\Users\yun\AppData\Local\DFScratch\build\dfrobot.ino.elf C:\Users\yun\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o C:\Program Files (x86)\Mind+\Arduino\static/core/uno/core.a -lm
  3. "C:\Program Files (x86)\Mind+\Arduino\hardware\tools\avr\bin\avr-objcopy" -O ihex -R .eeprom "C:\Users\yun\AppData\Local\DFScratch\build\dfrobot.ino.elf" "C:\Users\yun\AppData\Local\DFScratch\build\dfrobot.ino.hex"
  4. 项目使用了1622字节,占用了(5%)程序存储空间,余留30634字节,最大为32256字节。
  5. 全局变量使用了194字节,(9%)的动态内存,余留1854字节局部变量,最大为2048字节。
  6. C:\Program Files (x86)\Mind+\Arduino\hardware\tools\avr\bin\avrdude -CC:\Program Files (x86)\Mind+\Arduino/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\yun\AppData\Local\DFScratch\build\dfrobot.ino.hex:i
  7. avrdude: Version 6.3-20171130
  8.          Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
  9.          Copyright (c) 2007-2014 Joerg Wunsch
  10.          System wide configuration file is "C:\Program Files (x86)\Mind+\Arduino/hardware/tools/avr/etc/avrdude.conf"
  11.          Using Port                    : COM3
  12.          Using Programmer              : arduino
  13.          Overriding Baud Rate          : 115200
  14. avrdude: stk500_recv(): programmer is not responding
  15. avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb8
  16. avrdude: stk500_recv(): programmer is not responding
  17. avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb8
  18. avrdude: stk500_recv(): programmer is not responding
  19. avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb8
  20. avrdude: stk500_recv(): programmer is not responding
  21. avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb8
  22. avrdude: stk500_recv(): programmer is not responding
  23. avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb8
  24. avrdude: stk500_recv(): programmer is not responding
  25. avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb8
  26. avrdude: stk500_recv(): programmer is not responding
  27. avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb8
  28. avrdude: stk500_recv(): programmer is not responding
  29. avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb8
  30. avrdude: stk500_recv(): programmer is not responding
  31. avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb8
  32. avrdude: stk500_recv(): programmer is not responding
  33. avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb8
  34. avrdude done.  Thank you.
  35. 烧录失败
复制代码


创作许可协议

本项目采用 None(不开放任何权利,保留所有权利) 进行许可。

评论(1)
智慧
智慧
作者
板子是esp8266,还有一块esp32,两块都不行,但用ide 没问题
- 没有更多了 -