Forum: Mikrocontroller und Digitale Elektronik avrdude schreibt nur bis 64 byte in den flash-speicher


von John (Gast)


Lesenswert?

Hallo,

seit kurzem beschäftige ich mich mit der Programmierung von 
Mikrocontrollern und habe mir dafür einen Atmega8A-PU und einen 
MySmartUSB light programmer gekauft. Zum übertragen der Programme nutze 
ich avrdude unter Ubuntu 14.04. Anfangs war ich sehr happy über die 
ersten kleinen Erfolge und die ersten blinkenden LEDs. Aber mit größer 
werdenden Programmen kamen neue Probleme bei der Übertragung. Bei allem 
was größer als 64 byte ist bricht avrdude den Vorgang ab.
1
john@pc0815:~/avr/Beispielprogramme$ avrdude -c avr911 -p m8 -P /dev/ttyUSB0 -B 50 -U flash:w:timer2.hex:i  
2
3
Connecting to programmer: .
4
Found programmer: Id = "AVR ISP"; type = S
5
    Software Version = 3.0; Hardware Version = 3.0
6
Programmer supports auto addr increment.
7
Programmer supports buffered memory access with buffersize=128 bytes.
8
9
Programmer supports the following devices:
10
    Device code: 0x01
11
    Device code: 0x02
12
    Device code: 0x03
13
    Device code: 0x04
14
    Device code: 0x05
15
    Device code: 0x06
16
    Device code: 0x07
17
    Device code: 0x08
18
    Device code: 0x09
19
    Device code: 0x0a
20
    Device code: 0x0b
21
    Device code: 0x0c
22
    Device code: 0x0d
23
    Device code: 0x0e
24
    Device code: 0x0f
25
    Device code: 0x10
26
    Device code: 0x11
27
    Device code: 0x12
28
    Device code: 0x13
29
    Device code: 0x14
30
    Device code: 0x15
31
    Device code: 0x16
32
    Device code: 0x17
33
    Device code: 0x18
34
    Device code: 0x19
35
    Device code: 0x1a
36
    Device code: 0x1b
37
    Device code: 0x1c
38
    Device code: 0x1d
39
    Device code: 0x1e
40
    Device code: 0x1f
41
    Device code: 0x20
42
    Device code: 0x21
43
    Device code: 0x22
44
    Device code: 0x23
45
    Device code: 0x24
46
    Device code: 0x25
47
    Device code: 0x26
48
    Device code: 0x27
49
    Device code: 0x28
50
    Device code: 0x29
51
    Device code: 0x2a
52
    Device code: 0x2b
53
    Device code: 0x2c
54
    Device code: 0x2d
55
    Device code: 0x2e
56
    Device code: 0x2f
57
    Device code: 0x30
58
    Device code: 0x31
59
    Device code: 0x32
60
    Device code: 0x33
61
    Device code: 0x34
62
    Device code: 0x35
63
    Device code: 0x36
64
    Device code: 0x37
65
    Device code: 0x38
66
    Device code: 0x39
67
    Device code: 0x3a
68
    Device code: 0x3b
69
    Device code: 0x3c
70
    Device code: 0x3d
71
    Device code: 0x3e
72
    Device code: 0x3f
73
    Device code: 0x40
74
    Device code: 0x41
75
    Device code: 0x42
76
    Device code: 0x43
77
    Device code: 0x44
78
    Device code: 0x45
79
    Device code: 0x46
80
    Device code: 0x47
81
    Device code: 0x48
82
    Device code: 0x49
83
    Device code: 0x4a
84
    Device code: 0x4b
85
    Device code: 0x4c
86
    Device code: 0x4d
87
    Device code: 0x4e
88
    Device code: 0x4f
89
    Device code: 0x50
90
    Device code: 0x51
91
    Device code: 0x52
92
    Device code: 0x53
93
    Device code: 0x54
94
    Device code: 0x55
95
    Device code: 0x56
96
    Device code: 0x57
97
    Device code: 0x58
98
    Device code: 0x59
99
    Device code: 0x5a
100
    Device code: 0x5b
101
    Device code: 0x5c
102
    Device code: 0x5d
103
    Device code: 0x5e
104
    Device code: 0x5f
105
    Device code: 0x60
106
    Device code: 0x61
107
    Device code: 0x62
108
    Device code: 0x63
109
    Device code: 0x64
110
    Device code: 0x65
111
    Device code: 0x66
112
    Device code: 0x67
113
    Device code: 0x68
114
    Device code: 0x69
115
    Device code: 0x6a
116
    Device code: 0x6b
117
    Device code: 0x6c
118
    Device code: 0x6d
119
    Device code: 0x6e
120
    Device code: 0x6f
121
    Device code: 0x70
122
    Device code: 0x71
123
    Device code: 0x72
124
    Device code: 0x73
125
    Device code: 0x74
126
    Device code: 0x75
127
    Device code: 0x76
128
    Device code: 0x77
129
    Device code: 0x78
130
    Device code: 0x79
131
    Device code: 0x7a
132
    Device code: 0x7b
133
    Device code: 0x7c
134
    Device code: 0x7d
135
    Device code: 0x7e
136
    Device code: 0x7f
137
138
avrdude: AVR device initialized and ready to accept instructions
139
140
Reading | ################################################## | 100% 0.02s
141
142
avrdude: Device signature = 0x1e9307
143
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
144
         To disable this feature, specify the -D option.
145
avrdude: erasing chip
146
avrdude: reading input file "timer2.hex"
147
avrdude: writing flash (68 bytes):
148
149
Writing | #########################                          | 50% 0.08s
150
avrdude: butterfly_recv(): programmer is not responding
151
john@pc0815:~/avr/Beispielprogramme$

Wie gesagt bei kleineren Programmen funktioniert es fehlerfrei. Ich 
hoffe ihr könnt mir hier weiterhelfen.

grüße John

von stefanus (Gast)


Lesenswert?

Schaltplan?

Prüfe außerdem, ob die GND Leitung verbunden ist oder ob das ein 
Kabelbruch vorliegt.

von eProfi (Gast)


Lesenswert?

> avrdude: butterfly_recv(): programmer is not responding

ist "butterfly" der richtige "Treiber"?

von John I. (john_i)


Lesenswert?

So, hab mich hier mal angemeldet, also nicht über den neuen Namen 
wundern.

stefanus schrieb:
> Schaltplan?
>
> Prüfe außerdem, ob die GND Leitung verbunden ist oder ob das ein
> Kabelbruch vorliegt.

Für den Schaltplan fehlt mir gerade das passende Programm um es hier 
darzustellen, sollte aber nicht die Ursache sein, da kleinere Programme 
bei der gleichen Konfiguration funktionieren.

eProfi schrieb:
>> avrdude: butterfly_recv(): programmer is not responding
>
> ist "butterfly" der richtige "Treiber"?

Der Programmer soll mit dem stk500v2 und avr910/911 Protokoll arbeiten 
können. Wenn ich allerdings stk500v2 als Programmer wähle bekomme ich 
nur ein timeout.
1
avrdude: stk500v2_ReceiveMessage(): timeout
Wenn ich ihn als avr910 wähle:
1
john@pc0815:~/avr/Beispielprogramme$ avrdude -c avr910 -p m8 -P /dev/ttyUSB0 -U flash:w:timer2.hex:i   
2
3
Found programmer: Id = "AVR ISP"; type = S
4
    Software Version = 3.0; Hardware Version = 3.0
5
Programmer supports auto addr increment.
6
Programmer supports buffered memory access with buffersize = 128 bytes.
7
8
Programmer supports the following devices:
9
    Device code: 0x01 = (unknown)
10
    Device code: 0x02 = (unknown)
11
    Device code: 0x03 = (unknown)
12
    Device code: 0x04 = (unknown)
13
    Device code: 0x05 = (unknown)
14
    Device code: 0x06 = (unknown)
15
    Device code: 0x07 = (unknown)
16
    Device code: 0x08 = (unknown)
17
    Device code: 0x09 = (unknown)
18
    Device code: 0x0a = (unknown)
19
    Device code: 0x0b = (unknown)
20
    Device code: 0x0c = (unknown)
21
    Device code: 0x0d = (unknown)
22
    Device code: 0x0e = (unknown)
23
    Device code: 0x0f = (unknown)
24
    Device code: 0x10 = (unknown)
25
    Device code: 0x11 = (unknown)
26
    Device code: 0x12 = (unknown)
27
    Device code: 0x13 = AT90S1200
28
    Device code: 0x14 = (unknown)
29
    Device code: 0x15 = (unknown)
30
    Device code: 0x16 = (unknown)
31
    Device code: 0x17 = (unknown)
32
    Device code: 0x18 = (unknown)
33
    Device code: 0x19 = (unknown)
34
    Device code: 0x1a = (unknown)
35
    Device code: 0x1b = (unknown)
36
    Device code: 0x1c = (unknown)
37
    Device code: 0x1d = (unknown)
38
    Device code: 0x1e = (unknown)
39
    Device code: 0x1f = (unknown)
40
    Device code: 0x20 = ATtiny43u
41
    Device code: 0x21 = (unknown)
42
    Device code: 0x22 = (unknown)
43
    Device code: 0x23 = (unknown)
44
    Device code: 0x24 = (unknown)
45
    Device code: 0x25 = (unknown)
46
    Device code: 0x26 = (unknown)
47
    Device code: 0x27 = (unknown)
48
    Device code: 0x28 = AT90S4414
49
    Device code: 0x29 = (unknown)
50
    Device code: 0x2a = (unknown)
51
    Device code: 0x2b = (unknown)
52
    Device code: 0x2c = (unknown)
53
    Device code: 0x2d = (unknown)
54
    Device code: 0x2e = (unknown)
55
    Device code: 0x2f = (unknown)
56
    Device code: 0x30 = AT90S4433
57
    Device code: 0x31 = (unknown)
58
    Device code: 0x32 = (unknown)
59
    Device code: 0x33 = (unknown)
60
    Device code: 0x34 = AT90S2333
61
    Device code: 0x35 = (unknown)
62
    Device code: 0x36 = (unknown)
63
    Device code: 0x37 = (unknown)
64
    Device code: 0x38 = AT90S8515
65
    Device code: 0x39 = (unknown)
66
    Device code: 0x3a = ATmega8515
67
    Device code: 0x3b = (unknown)
68
    Device code: 0x3c = (unknown)
69
    Device code: 0x3d = (unknown)
70
    Device code: 0x3e = (unknown)
71
    Device code: 0x3f = (unknown)
72
    Device code: 0x40 = (unknown)
73
    Device code: 0x41 = ATmega103
74
    Device code: 0x42 = (unknown)
75
    Device code: 0x43 = ATmega128
76
    Device code: 0x44 = (unknown)
77
    Device code: 0x45 = ATmega64
78
    Device code: 0x46 = (unknown)
79
    Device code: 0x47 = (unknown)
80
    Device code: 0x48 = (unknown)
81
    Device code: 0x49 = (unknown)
82
    Device code: 0x4a = (unknown)
83
    Device code: 0x4b = (unknown)
84
    Device code: 0x4c = AT90S2343
85
    Device code: 0x4d = (unknown)
86
    Device code: 0x4e = (unknown)
87
    Device code: 0x4f = (unknown)
88
    Device code: 0x50 = (unknown)
89
    Device code: 0x51 = (unknown)
90
    Device code: 0x52 = (unknown)
91
    Device code: 0x53 = (unknown)
92
    Device code: 0x54 = (unknown)
93
    Device code: 0x55 = ATtiny12
94
    Device code: 0x56 = ATtiny15
95
    Device code: 0x57 = (unknown)
96
    Device code: 0x58 = (unknown)
97
    Device code: 0x59 = (unknown)
98
    Device code: 0x5a = (unknown)
99
    Device code: 0x5b = (unknown)
100
    Device code: 0x5c = (unknown)
101
    Device code: 0x5d = (unknown)
102
    Device code: 0x5e = ATtiny4313
103
    Device code: 0x5f = (unknown)
104
    Device code: 0x60 = ATmega161
105
    Device code: 0x61 = (unknown)
106
    Device code: 0x62 = (unknown)
107
    Device code: 0x63 = ATmega162
108
    Device code: 0x64 = ATmega163
109
    Device code: 0x65 = (unknown)
110
    Device code: 0x66 = (unknown)
111
    Device code: 0x67 = (unknown)
112
    Device code: 0x68 = AT90S8535
113
    Device code: 0x69 = ATmega8535
114
    Device code: 0x6a = (unknown)
115
    Device code: 0x6b = (unknown)
116
    Device code: 0x6c = AT90S4434
117
    Device code: 0x6d = (unknown)
118
    Device code: 0x6e = (unknown)
119
    Device code: 0x6f = (unknown)
120
    Device code: 0x70 = (unknown)
121
    Device code: 0x71 = (unknown)
122
    Device code: 0x72 = ATmega32
123
    Device code: 0x73 = (unknown)
124
    Device code: 0x74 = ATmega6450
125
    Device code: 0x75 = ATmega6490
126
    Device code: 0x76 = ATmega8
127
    Device code: 0x77 = (unknown)
128
    Device code: 0x78 = ATmega169
129
    Device code: 0x79 = (unknown)
130
    Device code: 0x7a = (unknown)
131
    Device code: 0x7b = (unknown)
132
    Device code: 0x7c = (unknown)
133
    Device code: 0x7d = (unknown)
134
    Device code: 0x7e = (unknown)
135
    Device code: 0x7f = (unknown)
136
137
avrdude: AVR device initialized and ready to accept instructions
138
139
Reading | ################################################## | 100% 0.02s
140
141
avrdude: Device signature = 0x1e9307
142
avrdude: avr910_recv(): programmer is not responding
143
john@pc0815:~/avr/Beispielprogramme$

von John I. (john_i)


Lesenswert?

Sonst hat niemand eine Idee?

von Marc V. (Firma: Vescomp) (logarithmus)


Lesenswert?

John I. schrieb:
> Sonst hat niemand eine Idee?

 Kannst du das:
> Programmer supports buffered memory access with buffersize = 128 bytes.

 irgendwie auf 64 Byte setzen ?

: Bearbeitet durch User
von Burner (Gast)


Lesenswert?

John I. schrieb:
> Sonst hat niemand eine Idee?

Zeig doch mal ein Log mit avrdude ... -h -h -h -h
(Ja, wiklich 4 mal eingeben)
Und am besten noch eins das funktioniert zusätzlich ( also mit kleinem 
Programmcode)

von Burner (Gast)


Lesenswert?

Burner schrieb im Beitrag #3827726 ziemlichen Unfug:

> Zeig doch mal ein Log mit avrdude ... -h -h -h -h

ab einer gewissen Uhrzeit sollte man doch nicht mehr posten ;-)

richtig ist natürlich -v -v -v -v

Sorry...

von John I. (john_i)


Lesenswert?

Marc Vesely schrieb:
>  Kannst du das:
>> Programmer supports buffered memory access with buffersize = 128 bytes.
>
>  irgendwie auf 64 Byte setzen ?

Ob und wie man das Umstellen kann weiß ich nicht.

Burner schrieb:
> Burner schrieb im Beitrag #3827726 ziemlichen Unfug:
>
>> Zeig doch mal ein Log mit avrdude ... -h -h -h -h
>
> ab einer gewissen Uhrzeit sollte man doch nicht mehr posten ;-)
>
> richtig ist natürlich -v -v -v -v
>
> Sorry...
1
john@pc0815:~/avr/Beispielprogramme$ avrdude -c avr911 -p m8 -P /dev/ttyUSB0 -U flash:w:timer.hex:i -vvvv
2
3
avrdude: Version 6.0.1, compiled on Oct 21 2013 at 15:55:32
4
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
5
         Copyright (c) 2007-2009 Joerg Wunsch
6
7
         System wide configuration file is "/etc/avrdude.conf"
8
         User configuration file is "/home/john/.avrduderc"
9
         User configuration file does not exist or is not a regular file, skipping
10
11
         Using Port                    : /dev/ttyUSB0
12
         Using Programmer              : avr911
13
         AVR Part                      : ATmega8
14
         Chip Erase delay              : 10000 us
15
         PAGEL                         : PD7
16
         BS2                           : PC2
17
         RESET disposition             : dedicated
18
         RETRY pulse                   : SCK
19
         serial program mode           : yes
20
         parallel program mode         : yes
21
         Timeout                       : 200
22
         StabDelay                     : 100
23
         CmdexeDelay                   : 25
24
         SyncLoops                     : 32
25
         ByteDelay                     : 0
26
         PollIndex                     : 3
27
         PollValue                     : 0x53
28
         Memory Detail                 :
29
30
                                  Block Poll               Page                       Polled
31
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
32
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
33
           eeprom         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff
34
                                  Block Poll               Page                       Polled
35
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
36
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
37
           flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
38
                                  Block Poll               Page                       Polled
39
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
40
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
41
           lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
42
                                  Block Poll               Page                       Polled
43
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
44
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
45
           hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
46
                                  Block Poll               Page                       Polled
47
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
48
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
49
           lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
50
                                  Block Poll               Page                       Polled
51
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
52
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
53
           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
54
                                  Block Poll               Page                       Polled
55
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
56
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
57
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
58
59
         Programmer Type : butterfly
60
         Description     : Atmel AppNote AVR911 AVROSP
61
62
Connecting to programmer: .avrdude: Send: . [1b] 
63
avrdude: Send: S [53] 
64
avrdude: Recv: A [41] 
65
66
avrdude: Recv: V [56] R [52]   [20] I [49] S [53] P [50] 
67
avrdude: Send: V [56] 
68
avrdude: Recv: 3 [33] 0 [30] 
69
avrdude: Send: v [76] 
70
avrdude: Recv: 3 [33] 
71
avrdude: Recv: 0 [30] 
72
avrdude: Send: p [70] 
73
avrdude: Recv: S [53] 
74
Found programmer: Id = "AVR ISP"; type = S
75
    Software Version = 3.0; Hardware Version = 3.0
76
avrdude: Send: a [61] 
77
avrdude: Recv: Y [59] 
78
Programmer supports auto addr increment.
79
avrdude: Send: b [62] 
80
avrdude: Recv: Y [59] 
81
avrdude: Recv: . [00] 
82
avrdude: Recv: . [80] 
83
Programmer supports buffered memory access with buffersize=128 bytes.
84
avrdude: Send: t [74] 
85
86
Programmer supports the following devices:
87
avrdude: Recv: . [01] 
88
    Device code: 0x01
89
avrdude: Recv: . [02] 
90
    Device code: 0x02
91
...
92
avrdude: Recv: ~ [7e] 
93
    Device code: 0x7e
94
avrdude: Recv: . [7f] 
95
    Device code: 0x7f
96
avrdude: Recv: . [00] 
97
98
avrdude: Send: T [54] . [01] 
99
avrdude: Recv: . [0d] 
100
avrdude: devcode selected: 0x01
101
avrdude: Send: P [50] 
102
avrdude: Recv: . [0d] 
103
avrdude: AVR device initialized and ready to accept instructions
104
105
Reading |                                                    | 0% 0.00savrdude: Send: s [73] 
106
avrdude: Recv: . [07] . [93] . [1e] 
107
Reading | ################################################## | 100% 0.02s
108
109
avrdude: Device signature = 0x1e9307
110
avrdude: Send: F [46] 
111
avrdude: Recv: . [e1] 
112
avrdude: safemode read 1, lfuse value: e1
113
avrdude: Send: F [46] 
114
avrdude: Recv: . [e1] 
115
avrdude: safemode read 2, lfuse value: e1
116
avrdude: Send: F [46] 
117
avrdude: Recv: . [e1] 
118
avrdude: safemode read 3, lfuse value: e1
119
avrdude: safemode: lfuse reads as E1
120
avrdude: Send: N [4e] 
121
avrdude: Recv: . [d9] 
122
avrdude: safemode read 1, hfuse value: d9
123
avrdude: Send: N [4e] 
124
avrdude: Recv: . [d9] 
125
avrdude: safemode read 2, hfuse value: d9
126
avrdude: Send: N [4e] 
127
avrdude: Recv: . [d9] 
128
avrdude: safemode read 3, hfuse value: d9
129
avrdude: safemode: hfuse reads as D9
130
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
131
         To disable this feature, specify the -D option.
132
avrdude: erasing chip
133
avrdude: Send: e [65] 
134
avrdude: Recv: . [0d] 
135
avrdude: reading input file "timer.hex"
136
avrdude: writing flash (52 bytes):
137
138
Writing |                                                    | 0% 0.00savrdude: Send: A [41] . [00] . [00] 
139
avrdude: Recv: . [0d] 
140
avrdude: Send: B [42] . [00] @ [40] F [46] . [09] . [c0] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [0d] . [c0] . [04] . [e0] . [0e] . [bf] . [0f] . [e5] . [0d] . [bf] . [07] . [e0] . [07] . [bb] . [05] . [e0] . [03] . [bf] . [01] . [e0] . [09] . [bf] . [11] . [e1] x [78] . [94] . [ff] . [cf] . [11] . [1f] . [18] . [bb] . [18] . [95] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] 
141
avrdude: Recv: . [0d] 
142
Writing | ################################################## | 100% 0.08s
143
144
avrdude: 52 bytes of flash written
145
avrdude: verifying flash memory against timer.hex:
146
avrdude: load data flash data from input file timer.hex:
147
avrdude: input file timer.hex contains 52 bytes
148
avrdude: reading on-chip flash data:
149
150
Reading |                                                    | 0% 0.00savrdude: Send: A [41] . [00] . [00] 
151
avrdude: Recv: . [0d] 
152
avrdude: Send: g [67] . [00] @ [40] F [46] 
153
avrdude: Recv: . [09] . [c0] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [0d] . [c0] . [04] . [e0] . [0e] . [bf] . [0f] . [e5] . [0d] . [bf] . [07] . [e0] . [07] . [bb] . [05] . [e0] . [03] . [bf] . [01] . [e0] . [09] . [bf] . [11] . [e1] x [78] . [94] . [ff] . [cf] . [11] . [1f] . [18] . [bb] . [18] . [95] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] 
154
Reading | ################################################## | 100% 0.06s
155
156
avrdude: avr_read(): skipping page 1: no interesting data
157
avrdude: avr_read(): skipping page 2: no interesting data
158
...
159
avrdude: avr_read(): skipping page 126: no interesting data
160
avrdude: avr_read(): skipping page 127: no interesting data
161
avrdude: verifying ...
162
avrdude: 52 bytes of flash verified
163
164
avrdude: Send: F [46] 
165
avrdude: Recv: . [e1] 
166
avrdude: safemode read 1, lfuse value: e1
167
avrdude: Send: F [46] 
168
avrdude: Recv: . [e1] 
169
avrdude: safemode read 2, lfuse value: e1
170
avrdude: Send: F [46] 
171
avrdude: Recv: . [e1] 
172
avrdude: safemode read 3, lfuse value: e1
173
avrdude: safemode: lfuse reads as E1
174
avrdude: Send: N [4e] 
175
avrdude: Recv: . [d9] 
176
avrdude: safemode read 1, hfuse value: d9
177
avrdude: Send: N [4e] 
178
avrdude: Recv: . [d9] 
179
avrdude: safemode read 2, hfuse value: d9
180
avrdude: Send: N [4e] 
181
avrdude: Recv: . [d9] 
182
avrdude: safemode read 3, hfuse value: d9
183
avrdude: safemode: hfuse reads as D9
184
avrdude: safemode: Fuses OK (H:FF, E:D9, L:E1)
185
avrdude: Send: L [4c] 
186
avrdude: Recv: . [0d] 
187
avrdude: Send: E [45] 
188
avrdude: Recv: . [0d] 
189
190
avrdude done.  Thank you.
191
192
john@pc0815:~/avr/Beispielprogramme$ avrdude -c avr911 -p m8 -P /dev/ttyUSB0 -U flash:w:timer2.hex:i -vvvv
193
194
avrdude: Version 6.0.1, compiled on Oct 21 2013 at 15:55:32
195
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
196
         Copyright (c) 2007-2009 Joerg Wunsch
197
198
         System wide configuration file is "/etc/avrdude.conf"
199
         User configuration file is "/home/john/.avrduderc"
200
         User configuration file does not exist or is not a regular file, skipping
201
202
         Using Port                    : /dev/ttyUSB0
203
         Using Programmer              : avr911
204
         AVR Part                      : ATmega8
205
         Chip Erase delay              : 10000 us
206
         PAGEL                         : PD7
207
         BS2                           : PC2
208
         RESET disposition             : dedicated
209
         RETRY pulse                   : SCK
210
         serial program mode           : yes
211
         parallel program mode         : yes
212
         Timeout                       : 200
213
         StabDelay                     : 100
214
         CmdexeDelay                   : 25
215
         SyncLoops                     : 32
216
         ByteDelay                     : 0
217
         PollIndex                     : 3
218
         PollValue                     : 0x53
219
         Memory Detail                 :
220
221
                                  Block Poll               Page                       Polled
222
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
223
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
224
           eeprom         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff
225
                                  Block Poll               Page                       Polled
226
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
227
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
228
           flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
229
                                  Block Poll               Page                       Polled
230
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
231
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
232
           lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
233
                                  Block Poll               Page                       Polled
234
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
235
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
236
           hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
237
                                  Block Poll               Page                       Polled
238
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
239
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
240
           lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
241
                                  Block Poll               Page                       Polled
242
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
243
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
244
           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
245
                                  Block Poll               Page                       Polled
246
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
247
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
248
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
249
250
         Programmer Type : butterfly
251
         Description     : Atmel AppNote AVR911 AVROSP
252
253
Connecting to programmer: .avrdude: Send: . [1b] 
254
avrdude: Send: S [53] 
255
avrdude: Recv: A [41] 
256
257
avrdude: Recv: V [56] R [52]   [20] I [49] S [53] P [50] 
258
avrdude: Send: V [56] 
259
avrdude: Recv: 3 [33] 0 [30] 
260
avrdude: Send: v [76] 
261
avrdude: Recv: 3 [33] 
262
avrdude: Recv: 0 [30] 
263
avrdude: Send: p [70] 
264
avrdude: Recv: S [53] 
265
Found programmer: Id = "AVR ISP"; type = S
266
    Software Version = 3.0; Hardware Version = 3.0
267
avrdude: Send: a [61] 
268
avrdude: Recv: Y [59] 
269
Programmer supports auto addr increment.
270
avrdude: Send: b [62] 
271
avrdude: Recv: Y [59] 
272
avrdude: Recv: . [00] 
273
avrdude: Recv: . [80] 
274
Programmer supports buffered memory access with buffersize=128 bytes.
275
avrdude: Send: t [74] 
276
277
Programmer supports the following devices:
278
avrdude: Recv: . [01] 
279
    Device code: 0x01
280
avrdude: Recv: . [02] 
281
    Device code: 0x02
282
...
283
avrdude: Recv: ~ [7e] 
284
    Device code: 0x7e
285
avrdude: Recv: . [7f] 
286
    Device code: 0x7f
287
avrdude: Recv: . [00] 
288
289
avrdude: Send: T [54] . [01] 
290
avrdude: Recv: . [0d] 
291
avrdude: devcode selected: 0x01
292
avrdude: Send: P [50] 
293
avrdude: Recv: . [0d] 
294
avrdude: AVR device initialized and ready to accept instructions
295
296
Reading |                                                    | 0% 0.00savrdude: Send: s [73] 
297
avrdude: Recv: . [07] . [93] . [1e] 
298
Reading | ################################################## | 100% 0.02s
299
300
avrdude: Device signature = 0x1e9307
301
avrdude: Send: F [46] 
302
avrdude: Recv: . [e1] 
303
avrdude: safemode read 1, lfuse value: e1
304
avrdude: Send: F [46] 
305
avrdude: Recv: . [e1] 
306
avrdude: safemode read 2, lfuse value: e1
307
avrdude: Send: F [46] 
308
avrdude: Recv: . [e1] 
309
avrdude: safemode read 3, lfuse value: e1
310
avrdude: safemode: lfuse reads as E1
311
avrdude: Send: N [4e] 
312
avrdude: Recv: . [d9] 
313
avrdude: safemode read 1, hfuse value: d9
314
avrdude: Send: N [4e] 
315
avrdude: Recv: . [d9] 
316
avrdude: safemode read 2, hfuse value: d9
317
avrdude: Send: N [4e] 
318
avrdude: Recv: . [d9] 
319
avrdude: safemode read 3, hfuse value: d9
320
avrdude: safemode: hfuse reads as D9
321
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
322
         To disable this feature, specify the -D option.
323
avrdude: erasing chip
324
avrdude: Send: e [65] 
325
avrdude: Recv: . [0d] 
326
avrdude: reading input file "timer2.hex"
327
avrdude: writing flash (68 bytes):
328
329
Writing |                                                    | 0% 0.00savrdude: Send: A [41] . [00] . [00] 
330
avrdude: Recv: . [0d] 
331
avrdude: Send: B [42] . [00] @ [40] F [46] . [09] . [c0] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [0f] . [c0] . [04] . [e0] . [0e] . [bf] . [0f] . [e5] . [0d] . [bf] . [07] . [e0] . [07] . [bb] . [05] . [e0] . [03] . [bf] . [01] . [e0] . [09] . [bf] x [78] . [94] . [11] 0 [30]   [20] . [f0] 0 [30] . [f4] . [fc] . [cf] . [13] . [95] . [18] . [95] . [01] . [e0] . [08] . [bb] . [08] . [95] . [00] . [e0] . [08] . [bb] 
332
avrdude: Recv: . [0d] 
333
Writing | #########################                          | 50% 0.08savrdude: Send: A [41] . [00]   [20] 
334
avrdude: Recv: . [0d] 
335
avrdude: Send: B [42] . [00] @ [40] F [46] . [10] . [e0] . [08] . [95] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] 
336
avrdude: ser_recv(): programmer is not responding
337
avrdude: butterfly_recv(): programmer is not responding

So das sind mal 2 Progrämmchen, eins was geht und das andere nicht.
Auflistungen wie "Programmer supports the following devices:" hab ich 
mal eingekürzt, da der Beitrag sonst zu lang werden würde.

von Burner (Gast)


Lesenswert?

HI,

das sieht aus als ob der 2. Block nicht sauber behandelt wird vom 
Programmer (also nach einem Bug dort, was einigermassen verwunderlich 
wäre das das noch nicht aufgefallen ist)

Probiere bitte mal avr910 statt 911 und zusätzlich -x no_blockmode

Wird dann bei USB zwar länger dauern, aber mal sehen...

von Burner (Gast)


Lesenswert?

ach ja, hast Du das myAVR Prog Tool mal versucht?
http://shop.myavr.de/index.php?sp=download.sp.php&suchwort=dl112

von Burner (Gast)


Lesenswert?

Burner schrieb:
> das sieht aus als ob der 2. Block nicht sauber behandelt wird vom
> Programmer (also nach einem Bug dort, was einigermassen verwunderlich
> wäre das das noch nicht aufgefallen ist)

Lustig ist allerdings auch, das avrdude zwar erkennt das der Programmer 
128Byte Puffer hat, aber trotzdem nur 64 Byte sendet. Die default avr910 
Programmer hatten immer nur 64 Byte.

Ist der Source für den Programmer frei verfügbar?

Es wundert mich auch das die stk500v2 Variante nicht klappt, woher 
stammt der Programmer? eBay/China?

von Burner (Gast)


Lesenswert?

Zusatzfrage: macht der USB Treiber auch eine tty variante? also 
/dev/tty.SLAB... oder so ähnlich? Dann könntest Du den mal mit der 
richtigen Baudrate probieren.
So, jetzt ist erst mal genug ;-)

von John I. (john_i)


Lesenswert?

Soooo Problem gelöst, der Fehler war eine fehlerhafte oder 
unvollständige Firmware des Programmers. Hatte nochmal die Kommentare 
bei Amazon durchgelesen, wo ich es gekauft habe. Dort schrieb einer mit 
den selben Problemen das er die Firmware einfach neu auf den Programmer 
gebrannt hat und es nachher funktionierte. Jetzt funktioniert alles mit 
dem stk500v2 Protokoll.

Vielen dank an alle und besonders an Burner, der das Problem frühzeitig 
erkannt und mich auf diese Fährte gebracht hat. :))))))))))

: Bearbeitet durch User
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.