[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-chat] avrdude stk500_2_ReceiveMessage(): timeout
From: |
Onno van Eijk |
Subject: |
[avr-chat] avrdude stk500_2_ReceiveMessage(): timeout |
Date: |
Mon, 05 Jun 2006 13:36:26 +0200 |
User-agent: |
Thunderbird 1.5.0.2 (X11/20060521) |
Hi,
I am trying to program an Atmega32 on a stk500 development board by
using avrdude.
> avrdude -p atmega32 -P /dev/ttyS5 -c stk500v2 -U flash:w:MessageBoard.hex
starts the programming proces. And usaly it programs the chip but it is
very slow (writing 4224 bytes of flash takes about 118 seconds) and
produces a lot of stk500_2_ReceiveMessage90; timeout messages.
I asume this is not 'normal' behaviour. Does anybody have any
suggestions to speed up the programming proces and eliminate the timeout
messages? Is the problem with avrdude, the serial drivers or with the
stk500?
I use avrdude on Ubuntu 6.06, kernel 2.6.15-23-amd64 but have
experienced the same problem on my labtop (ubuntu 5.10, kernel
2.6.12-10-386) on both avrdude 5 as 5.1
To be complete I added the output below.
Thanks,
Onno
$:~/src/avr/messageboard$ avrdude -p atmega32 -P /dev/ttyS5 -c stk500v2
-U flash:w:MessageBoard.hex -v -v -v
avrdude: Version 5.1
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/home/onno/.avrduderc"
User configuration file does not exist or is not a regular
file, skipping
Using Port : /dev/ttyS5
Using Programmer : stk500v2
AVR Part : ATMEGA32
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 4 10 64 0 no 1024 4 0
9000 9000 0xff 0xff
Memory Ops:
Oeration Inst Bit Bit Type Bitno Value
----------- -------- -------- ----- -----
READ 31 VALUE 7 1
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 0
27 VALUE 3 0
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 IGNORE 5 0
20 IGNORE 4 0
19 IGNORE 3 0
18 IGNORE 2 0
17 ADDRESS 9 0
16 ADDRESS 8 0
15 ADDRESS 7 0
14 ADDRESS 6 0
13 ADDRESS 5 0
12 ADDRESS 4 0
11 ADDRESS 3 0
10 ADDRESS 2 0
9 ADDRESS 1 0
8 ADDRESS 0 0
7 OUTPUT 7 0
6 OUTPUT 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
WRITE 31 VALUE 7 1
30 VALUE 6 1
29 VALUE 5 0
28 VALUE 4 0
27 VALUE 3 0
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 IGNORE 5 0
20 IGNORE 4 0
19 IGNORE 3 0
18 IGNORE 2 0
17 ADDRESS 9 0
16 ADDRESS 8 0
15 ADDRESS 7 0
14 ADDRESS 6 0
13 ADDRESS 5 0
12 ADDRESS 4 0
11 ADDRESS 3 0
10 ADDRESS 2 0
9 ADDRESS 1 0
8 ADDRESS 0 0
7 INPUT 7 0
6 INPUT 6 0
5 INPUT 5 0
4 INPUT 4 0
3 INPUT 3 0
2 INPUT 2 0
1 INPUT 1 0
0 INPUT 0 0
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages
MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
flash 33 6 64 0 yes 32768 128 256
4500 4500 0xff 0xff
Memory Ops:
Oeration Inst Bit Bit Type Bitno Value
----------- -------- -------- ----- -----
READ_LO 31 VALUE 7 0
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 0
27 VALUE 3 0
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 ADDRESS 13 0
20 ADDRESS 12 0
19 ADDRESS 11 0
18 ADDRESS 10 0
17 ADDRESS 9 0
16 ADDRESS 8 0
15 ADDRESS 7 0
14 ADDRESS 6 0
13 ADDRESS 5 0
12 ADDRESS 4 0
11 ADDRESS 3 0
10 ADDRESS 2 0
9 ADDRESS 1 0
8 ADDRESS 0 0
7 OUTPUT 7 0
6 OUTPUT 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
READ_HI 31 VALUE 7 0
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 0
27 VALUE 3 1
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 ADDRESS 13 0
20 ADDRESS 12 0
19 ADDRESS 11 0
18 ADDRESS 10 0
17 ADDRESS 9 0
16 ADDRESS 8 0
15 ADDRESS 7 0
14 ADDRESS 6 0
13 ADDRESS 5 0
12 ADDRESS 4 0
11 ADDRESS 3 0
10 ADDRESS 2 0
9 ADDRESS 1 0
8 ADDRESS 0 0
7 OUTPUT 7 0
6 OUTPUT 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
LOADPAGE_LO 31 VALUE 7 0
30 VALUE 6 1
29 VALUE 5 0
28 VALUE 4 0
27 VALUE 3 0
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 IGNORE 5 0
20 IGNORE 4 0
19 IGNORE 3 0
18 IGNORE 2 0
17 IGNORE 1 0
16 IGNORE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 ADDRESS 5 0
12 ADDRESS 4 0
11 ADDRESS 3 0
10 ADDRESS 2 0
9 ADDRESS 1 0
8 ADDRESS 0 0
7 INPUT 7 0
6 INPUT 6 0
5 INPUT 5 0
4 INPUT 4 0
3 INPUT 3 0
2 INPUT 2 0
1 INPUT 1 0
0 INPUT 0 0
LOADPAGE_HI 31 VALUE 7 0
30 VALUE 6 1
29 VALUE 5 0
28 VALUE 4 0
27 VALUE 3 1
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 IGNORE 5 0
20 IGNORE 4 0
19 IGNORE 3 0
18 IGNORE 2 0
17 IGNORE 1 0
16 IGNORE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 ADDRESS 5 0
12 ADDRESS 4 0
11 ADDRESS 3 0
10 ADDRESS 2 0
9 ADDRESS 1 0
8 ADDRESS 0 0
7 INPUT 7 0
6 INPUT 6 0
5 INPUT 5 0
4 INPUT 4 0
3 INPUT 3 0
2 INPUT 2 0
1 INPUT 1 0
0 INPUT 0 0
WRITEPAGE 31 VALUE 7 0
30 VALUE 6 1
29 VALUE 5 0
28 VALUE 4 0
27 VALUE 3 1
26 VALUE 2 1
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 ADDRESS 13 0
20 ADDRESS 12 0
19 ADDRESS 11 0
18 ADDRESS 10 0
17 ADDRESS 9 0
16 ADDRESS 8 0
15 ADDRESS 7 0
14 ADDRESS 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 IGNORE 1 0
8 IGNORE 0 0
7 IGNORE 7 0
6 IGNORE 6 0
5 IGNORE 5 0
4 IGNORE 4 0
3 IGNORE 3 0
2 IGNORE 2 0
1 IGNORE 1 0
0 IGNORE 0 0
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
2000 2000 0x00 0x00
Memory Ops:
Oeration Inst Bit Bit Type Bitno Value
----------- -------- -------- ----- -----
READ 31 VALUE 7 0
30 VALUE 6 1
29 VALUE 5 0
28 VALUE 4 1
27 VALUE 3 0
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 VALUE 5 0
20 VALUE 4 0
19 VALUE 3 0
18 VALUE 2 0
17 VALUE 1 0
16 VALUE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 IGNORE 1 0
8 IGNORE 0 0
7 OUTPUT 7 0
6 OUTPUT 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
WRITE 31 VALUE 7 1
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 0
27 VALUE 3 1
26 VALUE 2 1
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 1
22 VALUE 6 0
21 VALUE 5 1
20 VALUE 4 0
19 VALUE 3 0
18 VALUE 2 0
17 VALUE 1 0
16 VALUE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 IGNORE 1 0
8 IGNORE 0 0
7 INPUT 7 0
6 INPUT 6 0
5 INPUT 5 0
4 INPUT 4 0
3 INPUT 3 0
2 INPUT 2 0
1 INPUT 1 0
0 INPUT 0 0
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
2000 2000 0x00 0x00
Memory Ops:
Oeration Inst Bit Bit Type Bitno Value
----------- -------- -------- ----- -----
READ 31 VALUE 7 0
30 VALUE 6 1
29 VALUE 5 0
28 VALUE 4 1
27 VALUE 3 1
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 VALUE 5 0
20 VALUE 4 0
19 VALUE 3 1
18 VALUE 2 0
17 VALUE 1 0
16 VALUE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 IGNORE 1 0
8 IGNORE 0 0
7 OUTPUT 7 0
6 OUTPUT 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
WRITE 31 VALUE 7 1
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 0
27 VALUE 3 1
26 VALUE 2 1
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 1
22 VALUE 6 0
21 VALUE 5 1
20 VALUE 4 0
19 VALUE 3 1
18 VALUE 2 0
17 VALUE 1 0
16 VALUE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 IGNORE 1 0
8 IGNORE 0 0
7 INPUT 7 0
6 INPUT 6 0
5 INPUT 5 0
4 INPUT 4 0
3 INPUT 3 0
2 INPUT 2 0
1 INPUT 1 0
0 INPUT 0 0
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
2000 2000 0x00 0x00
Memory Ops:
Oeration Inst Bit Bit Type Bitno Value
----------- -------- -------- ----- -----
READ 31 VALUE 7 0
30 VALUE 6 1
29 VALUE 5 0
28 VALUE 4 1
27 VALUE 3 1
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 VALUE 5 0
20 VALUE 4 0
19 VALUE 3 0
18 VALUE 2 0
17 VALUE 1 0
16 VALUE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 IGNORE 1 0
8 IGNORE 0 0
7 IGNORE 7 0
6 IGNORE 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
WRITE 31 VALUE 7 1
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 0
27 VALUE 3 1
26 VALUE 2 1
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 1
22 VALUE 6 1
21 VALUE 5 1
20 IGNORE 4 0
19 IGNORE 3 0
18 IGNORE 2 0
17 IGNORE 1 0
16 IGNORE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 IGNORE 1 0
8 IGNORE 0 0
7 VALUE 7 1
6 VALUE 6 1
5 INPUT 5 0
4 INPUT 4 0
3 INPUT 3 0
2 INPUT 2 0
1 INPUT 1 0
0 INPUT 0 0
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
Memory Ops:
Oeration Inst Bit Bit Type Bitno Value
----------- -------- -------- ----- -----
READ 31 VALUE 7 0
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 1
27 VALUE 3 0
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 IGNORE 7 0
22 IGNORE 6 0
21 IGNORE 5 0
20 IGNORE 4 0
19 IGNORE 3 0
18 IGNORE 2 0
17 IGNORE 1 0
16 IGNORE 0 0
15 IGNORE 7 0
14 IGNORE 6 0
13 IGNORE 5 0
12 IGNORE 4 0
11 IGNORE 3 0
10 IGNORE 2 0
9 ADDRESS 1 0
8 ADDRESS 0 0
7 OUTPUT 7 0
6 OUTPUT 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
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
Memory Ops:
Oeration Inst Bit Bit Type Bitno Value
----------- -------- -------- ----- -----
READ 31 VALUE 7 0
30 VALUE 6 0
29 VALUE 5 1
28 VALUE 4 1
27 VALUE 3 1
26 VALUE 2 0
25 VALUE 1 0
24 VALUE 0 0
23 VALUE 7 0
22 VALUE 6 0
21 IGNORE 5 0
20 IGNORE 4 0
19 IGNORE 3 0
18 IGNORE 2 0
17 IGNORE 1 0
16 IGNORE 0 0
15 VALUE 7 0
14 VALUE 6 0
13 VALUE 5 0
12 VALUE 4 0
11 VALUE 3 0
10 VALUE 2 0
9 VALUE 1 0
8 VALUE 0 0
7 OUTPUT 7 0
6 OUTPUT 6 0
5 OUTPUT 5 0
4 OUTPUT 4 0
3 OUTPUT 3 0
2 OUTPUT 2 0
1 OUTPUT 1 0
0 OUTPUT 0 0
Programmer Type : STK500V2
Description : Atmel STK500 V2
Hardware Version: 2
Firmware Version: 2.1
Topcard : Unknown
Vtarget : 5.1 V
Varef : 5.0 V
Oscillator : 3.686 MHz
SCK period : 276.7 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.10s
avrdude: Device signature = 0x1e9502
avrdude: safemode: lfuse reads as DA
avrdude: safemode: hfuse reads as 11
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be
performed To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "MessageBoard.hex"
avrdude: input file MessageBoard.hex auto detected as Intel Hex
avrdude: writing flash (4224 bytes):
Writing | ################################################## | 100% 117.98s
avrdude: 4224 bytes of flash written
avrdude: verifying flash memory against MessageBoard.hex:
avrdude: load data flash data from input file MessageBoard.hex:
avrdude: input file MessageBoard.hex auto detected as Intel Hex
avrdude: input file MessageBoard.hex contains 4224 bytes
avrdude: reading on-chip flash data:
Reading | | 0%
0.00savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ### | 6%
12.02savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ###### | 12%
24.06savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ######### | 18%
36.08savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ############ | 24%
48.10savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ############### | 30%
60.12savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ################## | 36%
72.14savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ##################### | 42%
84.16savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ######################## | 48%
96.18savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ########################### | 54%
108.20savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ############################## | 60%
120.21savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ################################# | 66%
132.24savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | #################################### | 72%
144.25savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ####################################### | 78%
156.27savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ########################################## | 84%
168.29savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ############################################# | 90%
180.31savrdude: stk500_2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ################################################## | 100% 195.84s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x00c4
0x0e != 0x00
avrdude: verification error; content mismatch
avrdude: safemode: lfuse reads as DA
avrdude: safemode: hfuse reads as 11
avrdude: safemode: Fuses OK
avrdude done. Thank you.
- [avr-chat] avrdude stk500_2_ReceiveMessage(): timeout,
Onno van Eijk <=