Hello
I'm trying to program an atmega32u4 with a AVR-ISP500-TINY programmer, but it stucks when programming it.
sudo avrdude -b 115200 -p atmega32u4 -vvv -e -U flash:w:foo.hex -U lfuse:w:0xde:m -U hfuse:w:0xd9:m -U efuse:w:0xc9:m
avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:41:10
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/pepe/.avrduderc"
Using Port : /dev/ttyACM0
Using Programmer : stk500v2
Overriding Baud Rate : 115200
avrdude: stk500v2_getsync(): found STK500 programmer
AVR Part : ATmega32U4
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 1024 8 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00
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 9000 9000 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 9000 9000 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 9000 9000 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 9000 9000 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 STK500 Version 2.x firmware
Programmer Model: STK500
Hardware Version: 2
Firmware Version Master : 2.10
Topcard : Unknown
Vtarget : 4.3 V
SCK period : 276.7 us
Varef : 4.4 V
Oscillator : 32.623 kHz
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.10s
avrdude: Device signature = 0x1e9587
avrdude: safemode read 1, lfuse value: de
avrdude: safemode read 2, lfuse value: de
avrdude: safemode read 3, lfuse value: de
avrdude: safemode: lfuse reads as DE
avrdude: safemode read 1, hfuse value: d9
avrdude: safemode read 2, hfuse value: d9
avrdude: safemode read 3, hfuse value: d9
avrdude: safemode: hfuse reads as D9
avrdude: safemode read 1, efuse value: c9
avrdude: safemode read 2, efuse value: c9
avrdude: safemode read 3, efuse value: c9
avrdude: safemode: efuse reads as C9
avrdude: erasing chip
avrdude: reading input file "foo.hex"
avrdude: input file foo.hex auto detected as Intel Hex
avrdude: writing flash (32768 bytes):
Writing | ############################################ | 87% 0.00savrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): found STK500 programmer
It is stopped at this point for a while, it doesn't continue. Can anybody help me with this?
I have a Xubuntu with avrdude 5.11
Thank you!
Using google for that timeout shows a lot of people get it. Maybe one found a fix?
Maybe worth trying
-c stk500
I have a usbasp and use
-c arduino
maybe that works?
John
Sorry, I have an .avrduderc, I forgot it, it is implicit the programmer and the usb:
cat .avrduderc
default_programmer = "stk500v2";
default_serial = "/dev/ttyACM0";
The problem is not the timeout (well, IS a problem, but not the biggest).
Avrdude continues executing but it get stuck when seems that it founds the programmer:
here is where it gets stuck:
avrdude: stk500v2_getsync(): found STK500 programmer
Did you at least try what I posted? You don't have much to lose...
John
Sorry, yes, I tried it and the result was the same.
But I changed the programmer to a AVR-ISP500 and it works fine.
I'll research what I was doing wrong with the TINY (and I'll post here if I found the solution)
Thank you