2

所以,我以前在 Ubuntu 上工作过。但后来我升级到 11.10。现在,没有这样的运气。

注意:如果你还在为让它在 Eclipse 上工作而感到困惑,你可能想试试这个命令行的东西……如果它在这里不起作用,它就不能在 Eclipse 中工作。

我有这个错误:

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_command(): unknown status 0xc9
avrdude: stk500v2_program_enable(): cannot get connection status
avrdude: initialization failed, rc=-1
     Double check connections and try again, or use -F to override
     this check.

我尝试过所有不同的配置。即:-B 1 ,10, 1000,

-F 无济于事,因为您只需返回 000000 或您的序列号。另外,我应该提一下,从下面的输出中可以清楚地看到,它到达了编程器,甚至到达了目标板,并读取了它的电压。您还可以看到目标芯片复位。(即:我已经在包括 DB101 在内的许多设备上进行了测试,您可以看到它何时重置)

完整的输出是这样的:

> avrdude -c avrispmkII -P usb -p m1281 -B 100 -v

avrdude: Version 5.10, compiled on Jun 29 2010 at 03:44:14
     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
     Copyright (c) 2007-2009 Joerg Wunsch

     System wide configuration file is "/etc/avrdude.conf"
     User configuration file is "/home/david/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : usb
     Using Programmer              : avrispmkII
     Setting bit clk period        : 100.0
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200037289
     AVR Part                      : ATMEGA1281
     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    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
       flash         65    10   256    0 yes    131072  256    512  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 : STK500V2
     Description     : Atmel AVR ISP mkII
     Programmer Model: AVRISP mkII
     Hardware Version: 1
     Firmware Version Master : 1.13
     Vtarget         : 5.1 V
     SCK period      : 100.37 us

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_command(): unknown status 0xc9
avrdude: stk500v2_program_enable(): cannot get connection status
avrdude: initialization failed, rc=-1
     Double check connections and try again, or use -F to override
     this check.


avrdude done.  Thank you.

我已经设置了 udev 的东西:即:

cat /etc/udev/rules.d/60-avrisp.rules SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"

# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2103", MODE="660", GROUP="dialout"

# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2104", MODE="660", GROUP="dialout"

# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2107", MODE="660", GROUP="dialout"

LABEL="avrisp_end"

该板和程序员在另一台机器上与 AVR 工作室一起工作。显然很多人在 Linux 上都有这个问题。:( 真的不想挖一个 winblows 盒子。

4

2 回答 2

4

我也很难让我的工作。最后,我绊倒了http://wiki.dataflow.ws/Electronix/AvrIsp2OnOSX并发现我实际上错过了一个包。安装uisp后

sudo apt-get install uisp

我跑了

sudo avrdude -c avrispmkII -p m168 -P usb: -B 8 -v -U lock:w:0x3f:m -U lfuse:w:0xff:m -U hfuse:w:0xdf:m -U efuse:w:0x0:m

并得到了一个漂亮的绿色 LED。

于 2012-05-15T04:45:19.187 回答
1

只是为了记录(相同的错误消息)并且因为我还花了一些时间摆弄我的 AVR ISP MKII:

 avrdude: initialization failed, rc=-1
      Double check connections and try again, or use -F to override
      this check.

只有在使用参数调整时间后,它才对我有用-B!看起来即使是当前的迷你 PC 也太快了。

Avrdude 现在可以在直接的 Debian 7 下可靠地为我工作。此外,它在安装了 WinAVR 驱动程序的 Windows 8 下工作,然后在通过 AVRISP 传递到 VirtualBox 中的 VM 后,运行 Debian 7 非 UI 安装的 VirtualBox VM。

avrdude -c avrispmkII -P usb -p t13 -B 10 -v
...
于 2013-06-26T11:16:58.557 回答