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 でこの問題を抱えています。:(ウィンブローボックスを掘り起こす必要はありません。

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 に答える