【问题标题】:Code is not uploading in new aurdino mega代码未在新的 arduino mega 中上传
【发布时间】:2017-09-22 20:44:26
【问题描述】:

我是 arduino 编程的新手(我也是新购买的板)。当我在 ardino mega board(使用 Aurdino 1.8.2)中上传我的代码时,我收到以下错误

Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 1482 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM3 -b115200 -D -Uflash:w:C:\Users\Admin\AppData\Local\Temp\arduino_build_393128/Blink.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         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                    : COM3
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
An error occurred while uploading the sketch
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

我如何解决这个问题。 我的设置如下 。 其余的都是默认的。我的驱动程序在设备管理器中也是最新的。

【问题讨论】:

    标签: arduino hardware-programming


    【解决方案1】:

    首先,尝试环回测试。如果失败,则很可能是硬件有问题。如果通过,请尝试将 avr 目录替换为其他版本。此外,如果引脚 1 或 0 连接到任何东西,则可能会导致此错误。这是因为这些引脚用于 Tx/Rx。此外,如果您使用,mega 的引导加载程序将会中断!在你的代码中。如果所有这些都没有帮助,请尝试重新安装 FTDI 驱动程序。

    【讨论】:

    • 如何环回测试
    猜你喜欢
    • 2014-06-23
    • 1970-01-01
    • 2014-12-29
    • 2023-03-21
    • 2013-06-05
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 2016-05-04
    相关资源
    最近更新 更多