Estoy intentando programar un ATmega168 usando un AVRISPmkii a través del ICSP de 6 pines en una placa que "diseñé" (la primera).
Tengo VCC conectado a una PSU y AVRISPmkii conectado al encabezado de ICSP. El LED del AVRISPmkii está verde fijo en este punto. Cuando trato de programarlo usando avrdude, el LED en el AVRISPmkii cambia a rojo intermitente y a los informes de avrdude:
bad AVRISPmkII connection status: MOSI fail
El chip funciona bien en la placa (ejecuta el programa correctamente, responde a las entradas y hace lo correcto para enviar a una pantalla), como lo había programado previamente en una placa de pruebas. Tiene el cargador de arranque Arduino, en caso de que sea relevante.
El ABRISPmkii puede programar el mismo chip si muevo el chip de la placa personalizada a una placa Arduino Diecimla, usando exactamente el mismo comando avrdude.
He revisado el tablero para ver si hay pantalones cortos. He comprobado la continuidad en las 6 conexiones, desde los pines en los encabezados hasta los pines en el chip, 5V y GND.
Supongo que esto significa que hay algo mal con el diseño del tablero, pero no puedo ver lo que podría haber hecho mal.
Esta es la parte principal del esquema:
Lalíneadecomandoysalidadeavrdudecompletaes:
$/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude-C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf-patmega168-cavrisp2-Pusb-Uflash:w:/var/folders/v9/qn7wvjqs18v6g5j_wlxxs2pw0000gn/T/build4459692069199443819.tmp/badminton_scoreboard_beep.cpp.hex:i-vvvvavrdude:Version5.11,compiledonSep22011at18:52:52Copyright(c)2000-2005BrianDean,http://www.bdmicro.com/Copyright(c)2007-2009JoergWunschSystemwideconfigurationfileis“/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/dave/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : usb
Using Programmer : avrisp2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200033610
avrdude: usbdev_open(): using read endpoint 0x82
avrdude: Sent: . [01]
avrdude: Recv: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P [50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
AVR Part : ATMEGA168
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
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 512 4 0 3600 3600 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 128 0 yes 16384 128 128 4500 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
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
avrdude: Sent: . [03] . [90]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [91]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [92]
avrdude: Recv: . [03] . [00] . [0c]
Hardware Version: 1
Firmware Version Master : 1.12
avrdude: Sent: . [03] . [94]
avrdude: Recv: . [03] . [00] . [00]
Vtarget : 0.0 V
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [06]
SCK period : 8.00 us
avrdude: Sent: . [10] . [c8] d [64] . [19] [20] . [00] S [53] . [03] . [ac] S [53] . [00] . [00]
avrdude: Recv: . [10] . [c0]
avrdude: stk500v2_command(): command failed
avrdude: Sent: . [03] . [a1]
avrdude: Recv: . [03] . [00] . [01]
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: MOSI fail
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: Sent: . [11] . [01] . [01]
avrdude: Recv: . [11] . [00]
avrdude done. Thank you.
¿Alguna idea de lo que podría haber hecho mal o qué pasos adicionales de solución de problemas podría intentar?