Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么要从EclipseC++;Arduino的IDE失败了?_Eclipse_Arduino_Usb - Fatal编程技术网

为什么要从EclipseC++;Arduino的IDE失败了?

为什么要从EclipseC++;Arduino的IDE失败了?,eclipse,arduino,usb,Eclipse,Arduino,Usb,我试图设置一个当前的EclipseCDT(光子),以编程一个微强(5V)的Arduino Leonardo克隆。Arduino功能是预先安装的,这让我很惊讶。添加一个发布目标非常容易。代码的编译正在工作,但当尝试闪存到leonardo克隆时,进程被卡住,无法在控制台中报告以下内容: avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53 Copyright (c) 2000-2005 Brian Dean, http:

我试图设置一个当前的EclipseCDT(光子),以编程一个微强(5V)的Arduino Leonardo克隆。Arduino功能是预先安装的,这让我很惊讶。添加一个发布目标非常容易。代码的编译正在工作,但当尝试闪存到leonardo克隆时,进程被卡住,无法在控制台中报告以下内容:

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:/Users/zephr/.arduinocdt/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM5
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

avrdude: butterfly_recv(): programmer is not responding
有人知道是什么导致了这里的问题吗?该过程在原始Arduino IDE中运行平稳。更进一步,我在哪里可以找到在eclipse设置中发送给avrdude的选项?我在构建选项中找不到任何内容


您好…

您没有提到以1200bps比特率打开它的串行端口。此特定比特率用于执行软件重置,并将电路板重新引导到引导加载程序中,因此可以对arduino进行重新编程

另一个问题是引导加载程序驻留在草图之外的另一个COM端口上。这就是为什么Arduino IDE以1200bps的速度接触主板的端口,然后检查COM端口接口的变化。在检测到正确的端口后,它开始闪烁

例如,来自Micro board的调试信息:

Forcing reset using 1200bps open/close on port COM6
PORTS {COM6, } / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {COM7, } => {COM7, }
Found upload port: COM7
C:\arduino-1.8.5\hardware\tools\avr/bin/avrdude -CC:\arduino-1.8.5\hardware\tools\avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -PCOM7 -b57600 -D -Uflash:w:C:\Users\user\AppData\Local\Temp\arduino_build_998217/sketch_sep02a.ino.hex:i 

有趣的是,也许这还没有在Eclipse for Arduino中实现……我在这里找到了一个解决这个问题的批处理文件。你知道如何更改工具链以调用此批而不是avrdude吗?对leonardo uploader做了一点修改:这样就可以通过IDE中的run命令一步完成构建和上载。