无论我做什么,我都会收到此错误 avrdude: stk500_getsync() 尝试 8 of 10: not in sync: resp=0xbe

问题描述

我的问题是,无论我如何将闪烁程序上传到我的 Arduino pro-mini,我都遇到了不同步错误(下面我附上了错误以供参考)。

让我简要解释一下我的问题,我喜欢 60 个 pro-mini,其中 30 个以前加载了一些代码(并且都运行良好),现在由于硬盘问题我丢失了代码(不幸的是我没有备份)现在的事情是我必须用相同的代码对剩余的 pro-mini 进行编码,我尝试使用 AVR Dude 检索代码,但我得到的不是同步错误。后来我尝试使用 IDE 和 cmd 行中的闪烁程序上传,但上传时仍然遇到相同的错误。所以,我尝试了另一个 Promini,令我惊讶的是同样的错误,另一个我尝试了所有 30 个 pro-mini 都给了我同样的错误(所有 60 个 pro--mini 都来自同一个供应商),我尝试上传眨眼对剩下的 30 个 prominis 进行编程,它就像一个魅力。我不知道为什么,那些 pms 没有同步。我尝试以不同的方式上传到静脉。 我观察到的是,每当我连接电源、按下重置按钮以及上传时,pm 的重置 LED 都会快速闪烁几秒钟。 请帮帮我

以下是我尝试过的方法

  • 我尝试使用 Arduino uno、Mega、USB - TTL、FTDI 上传...
  • 更换了 USB 数据线。
  • 尝试使用不同的计算机。

预加载的 pms 没有任何作用,但与空的 pms 一起工作。在大约两周的时间里,我浏览了很多帖子,但没有任何效果

以下是错误信息

Arduino: 1.8.13 (Windows 10),Board: "Arduino Pro or Pro Mini,ATmega328P (5V,16 MHz)"
Sketch uses 444 bytes (1%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory,leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM11 -b57600 -D -Uflash:w:C:\Users\BJI\AppData\Local\Temp\arduino_build_411622/sketch_apr15a.ino.hex:i 

avrdude:版本 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                    : COM11

     Using Programmer              : arduino

     Overriding Baud Rate          : 57600

    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xce
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf7
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x6b
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xa8
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xee
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x4f
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xa8
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xbe
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xed
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9e

avrdude done.  Thank you.

上传草图时出错

此报告将包含更多信息 “在编译期间显示详细输出” 在文件 -> 首选项中启用选项。

解决方法

通过使用Arduino作为ISP程序员解决。如果我尝试直接上传,则会抛出错误,但是当我使用 ISP 程序员上传时,它可以工作。