2012-03-29 104 views
2

所以,我以前在Ubuntu上工作过。但后来我升级到11.10。现在,没有这样的运气。注意:如果你仍然在搞这个在Eclipse上工作,你可能想尝试这个命令行的东西...如果它不工作在这里,它不会在Eclipse中工作。AVR ISP MKII,avrdude,Ubuntu 11.10

我有这样的错误:

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或任何您的序列号。另外,我应该从下面的输出中清楚地看到,您可以看到它到达编程器甚至是目标板并读取其电压。 您还可以看到目标芯片重置。 (即:我曾在多个设备的测试includeing一个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 Studio程序员的工作。 显然很多人在Linux上都有这个问题。 :( 不要真的想挖出一个winblows盒子

回答

3

我真的很难让我的工作以及最后,我绊倒了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。

+0

谢谢......但即使是一年后,我仍然与avrisp mkii纠缠在一起。它在Ubuntu上真的很特别。它会工作,然后你改变板子,它没有,然后你改变回来,它仍然无法正常工作。让我发狂。我倾向于现在使用Arduino UNO进行编程。它的方式更便宜,似乎更可靠。然而,它的编程速度慢得多。 – SpiRail 2013-02-21 22:10:31

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下运行,然后在运行Debian 7非UI安装的VirtualBox VM中通过AVRISP传递给VirtualBox中的VM。

avrdude -c avrispmkII -P usb -p t13 -B 10 -v 
...