그래서 우분투에서이 작업을 수행했습니다. 그런데 11.10으로 업그레이드했습니다. 그런 행운은 없습니다.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 또는 무엇이든 시리얼을 가져 오는 데 도움이되지 않습니다. 또한 필자는 아래 출력에서 프로그래머와 대상 보드에 도달하여 전압을 읽음을 알 수 있습니다. 대상 칩 재설정을 볼 수도 있습니다. (예 : 나는 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 스튜디오와 프로그래머가 작동합니다. 분명히 많은 사람들이 리눅스에서이 문제를 겪고 있습니다. :( 그나마 정말 winblows 상자.
고마워요.하지만 1 년이 지난 후에도 여전히 변덕스러운 mkii와 투쟁합니다. Ubuntu에서 정말 이상합니다. 그것은 작동 할 것이다, 그 후에 당신은 널을 바꾸고 그것 doesnt, 그 후에 당신은 후에 변화하고 아직도 일하지 않는다. 나를 미치게 해. 나는 이제 Arduino UNO와 함께 프로그램하는 경향이 있습니다. 그 방법은 저렴하고 더 신뢰할 수있는 것 같습니다. 그러나 프로그램하기가 훨씬 느립니다. – SpiRail