Hello everyone,
I've been trying to flash an attiny 4 with an AVRisp MK2 using avrdude
trunk and 5.11.1 but only got errors.
I've connected the ISP connector of the AVRisp MK2 to the uC according
to TPI mapping described in
http://www.nongnu.org/avrdude/user-manual/avrdude_20.html . The uC also
has 5V connected to VCC.
This is the output I get when using avrdude:
/-------------------------------------------------------\
$ sudo avrdude -p t4 -c avrispmkii -P usb -t -v -v
avrdude: Version 5.11.1, compiled on Nov 24 2011 at 19:52:35
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/usr/local/etc/avrdude.conf"
User configuration file is "/home/enigma/.avrduderc"
User configuration file does not exist or is not a regular
file, skippi
Using Port : usb
Using Programmer : avrispmkii
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200101104
avrdude: usbdev_open(): using read endpoint 0x82
AVR Part : ATtiny4
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :
Block Poll Page
Memory Type Mode Delay Size Indx Paged Size Size #Pages
MinW Max
----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ---
flash 0 0 128 0 no 512 16
0 0
signature 0 0 0 0 no 3 16
0 0
fuse 0 0 4 0 no 1 16
0 0
calibration 0 0 0 0 no 1 16
0 0
lockbits 0 0 0 0 no 1 16
0 0
Programmer Type : STK500V2
Description : Atmel AVR ISP mkII
Programmer Model: AVRISP mkII
Hardware Version: 1
Firmware Version Master : 1.10
Vtarget : 5.1 V
SCK period : 8.00 us
avrdude: stk500v2_command(): error in CMD_XPROG_SETMODE: Unknown
avrdude: stk600_xprog_program_enable(): CMD_XPROG_SETMODE(XPRG_MODE_TPI)
failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
\________________________________________________________________________/
Did I understand correctly that I can program the tiny4 using my
programmer with avrdude? If so, does anyone know why it doesn't work?
Greetings!
Raffael
_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev