Forum: Compiler & IDEs avrdude: verification error, first mismatch at byte 0x005e


von Jonas (Gast)


Lesenswert?

Hallo,

habe plötzlich folgendes Problem:
1
C:\Robotik\Programme\WinAVR\bin>avrdude -p atmega2560 -P usb -c avrisp2 -e -F     -U flash:w:main.he
2
x
3
4
avrdude: AVR device initialized and ready to accept instructions
5
6
Reading | ################################################## | 100% 0.02s
7
8
avrdude: Device signature = 0x1e9801
9
avrdude: erasing chip
10
avrdude: reading input file "main.hex"
11
avrdude: input file main.hex auto detected as Intel Hex
12
avrdude: writing flash (11388 bytes):
13
14
Writing | ################################################## | 100% 5.63s
15
16
avrdude: 11388 bytes of flash written
17
avrdude: verifying flash memory against main.hex:
18
avrdude: load data flash data from input file main.hex:
19
avrdude: input file main.hex auto detected as Intel Hex
20
avrdude: input file main.hex contains 11388 bytes
21
avrdude: reading on-chip flash data:
22
23
Reading | ################################################## | 100% 5.72s
24
25
avrdude: verifying ...
26
avrdude: verification error, first mismatch at byte 0x005e
27
         0x0d != 0x01
28
avrdude: verification error; content mismatch
29
30
avrdude: safemode: Fuses OK
31
32
avrdude done.  Thank you.


Zuvor lief alles einwandfrei. Mit einem anderen Board funktioniert es 
auch.

Ist das Board im Eimer?

Was könnte ich noch testen?

Programmer ist AVRISP MK II.
Was braucht ihr noch an zusätzlichen Informationen?

Vielen Dank im Voraus.

Gruß Jonas

von Lötnix (Gast)


Lesenswert?

Hallo Jonas,

mit -B die ISP Clockrate langsamer machen? Abhängig vom Quarz 
(Frequenz?)

Ansonsten mal löschen und auslesen ob alles auf FF steht. Manchmal geht 
halt doch ein Controller kaputt (glaube ich hier aber nicht)

HTH,
Lötnix

von Jonas (Gast)


Lesenswert?

Hallo,

Danke für die Tipps. Ich hab verschiedene -B versucht, auch mit 1000, 
womit das Schreiben und Lesen je 30sek gedauert hat, hat aber nicht 
geholfen.

Ich weiß nicht, ob ich dich richtig verstanden habe, weil ich noch ien 
ziemlicher Anfänger bin.

Ich bin in den Terminalmodus gegangen und habe dort erst mal "erase" 
eingegeben und dann "read flash 94 5" und "read eeprom 94 5" (94 wegen 
dem 5e).

avrdude> read eeprom 94 5
>>> read eeprom 94 5
005e  01 ff ff ff ff

avrdude> read flash 94 5
>>> read flash 94 5
005e  01 00 0c 94 93

Das habe ich mir auch noch ausgeben lassen:
1
avrdude> part
2
>>> part
3
4
AVR Part              : ATMEGA2560
5
Chip Erase delay      : 9000 us
6
PAGEL                 : PD7
7
BS2                   : PA0
8
RESET disposition     : dedicated
9
RETRY pulse           : SCK
10
serial program mode   : yes
11
parallel program mode : yes
12
Timeout               : 200
13
StabDelay             : 100
14
CmdexeDelay           : 25
15
SyncLoops             : 32
16
ByteDelay             : 0
17
PollIndex             : 3
18
PollValue             : 0x53
19
Memory Detail         :
20
21
                         Block Poll               Page                       Pol
22
led
23
  Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadB
24
ack
25
  ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ------
26
---
27
  eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0
28
x00
29
  flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0
30
x00
31
  lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0
32
x00
33
  hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0
34
x00
35
  efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0
36
x00
37
  lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0
38
x00
39
  calibration    0     0     0    0 no          1    0      0     0     0 0x00 0
40
x00
41
  signature      0     0     0    0 no          3    0      0     0     0 0x00 0
42
x00
43
44
avrdude> part
45
>>> part
46
47
AVR Part              : ATMEGA2560
48
Chip Erase delay      : 9000 us
49
PAGEL                 : PD7
50
BS2                   : PA0
51
RESET disposition     : dedicated
52
RETRY pulse           : SCK
53
serial program mode   : yes
54
parallel program mode : yes
55
Timeout               : 200
56
StabDelay             : 100
57
CmdexeDelay           : 25
58
SyncLoops             : 32
59
ByteDelay             : 0
60
PollIndex             : 3
61
PollValue             : 0x53
62
Memory Detail         :
63
64
                         Block Poll               Page                       Polled
65
  Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
66
  ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
67
  eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
68
  flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
69
  lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
70
  hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
71
  efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
72
  lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
73
  calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
74
  signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

Mein Prozessor läuft mit 2,4GHz, das Board mit 16MHz.
Avrdude läuft auf einem über VMWare virtualisiertem WinXP.

Mein Ersatzboard funktioniert einwandfrei.

Gruß Jonas

von Jonas (Gast)


Lesenswert?

1
avrdude> read flash 94 400
2
>>> read flash 94 400
3
005e  01 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |.. öô. öô. öô. ö|
4
006e  93 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |ô. öô. öô. öô. ö|
5
007e  93 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |ô. öô. öô. öô. ö|
6
008e  93 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |ô. öô. öô. öô. ö|
7
009e  93 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |ô. öô. öô. öô. ö|
8
00ae  93 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |ô. öô. öô. öô. ö|
9
00be  93 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |ô. öô. öô. öô. ö|
10
00ce  93 00 0c 94 93 00 0c 94  93 00 0c 94 93 00 0c 94  |ô. öô. öô. öô. ö|
11
00de  93 00 0c 94 93 00 11 24  1f be cf ef d1 e2 de bf  |ô. öô..$.¥.´Ð.. |
12
00ee  cd bf 00 e0 0c bf 10 e0  a0 e0 b2 e0 e0 e0 f0 e0  | .Ó  .ÓáÓ▓ÓÓÓ­Ó|
13
00fe  00 e0 0b bf 02 c0 07 90  0d 92 a0 30 b1 07 d9 f7  |.Ó  ..É Æá0..¸|
14
010e  10 e0 a0 e0 b0 e0 01 c0  1d 92 a0 30 b1 07 e1 f7  |.ÓáÓ░Ó..Æá0..¸|
15
011e  0e 94 00 00 0c 94 00 00  0c 94 00 00 e2 e0 f1 e0  |.ö.. ö.. ö...Ó.Ó|
16
012e  80 81 84 60 80 83 00 c0  80 81 8b 7f 80 83 08 95  |..ä`.â...ï..â.ò|
17
013e  cf 93 df 93 98 2f 66 23  21 f0 80 91 02 01 81 60  |.ô▀ôÿ/f#!­.æ...`|
18
014e  03 c0 80 91 02 01 8e 7f  80 93 02 01 80 91 02 01  |..æ..Ä..ô...æ..|
19
015e  8d 7f 80 93 02 01 80 91  01 01 88 60 80 93 01 01  |ì..ô...æ..ê`.ô..|
20
016e  80 91 01 01 80 61 80 93  01 01 80 91 01 01 80 62  |.æ...a.ô...æ...b|
21
017e  80 93 01 01 80 91 01 01  80 64 80 93 01 01 80 91  |.ô...æ...d.ô...æ|
22
018e  02 01 8f 7b 80 93 02 01  80 91 02 01 8f 7d 80 93  |..Å{.ô...æ..Å}.ô|
23
019e  02 01 80 91 02 01 8f 7e  80 93 02 01 80 91 02 01  |...æ..Å~.ô...æ..|
24
01ae  87 7f 80 93 02 01 97 ff  05 c0 80 91 02 01 80 64  |ç..ô..ù...æ...d|
25
01be  80 93 02 01 c9 2f 96 ff  05 c0 80 91 02 01 80 62  |.ô.../û...æ...b|
26
01ce  80 93 02 01 c5 ff 05 c0  80 91 02 01 80 61 80 93  |.ô.....æ...a.ô|
27
01de  02 01 c4 ff 05 c0 80 91  02 01 88 60 80 93 02 01  |.....æ..ê`.ô..|
Im Eeprom stehen bis auf die erste Stelle nur FF.

von Lötnix (Gast)


Lesenswert?

Hallo Jonas,

na das sieht nach nicht gelöschtem Flash aus. Du hattest geschrieben, 
das es mit anderen Chips geht, vielleicht ist der ja doch defekt, oder 
die Spannungsversorgung ist instabil? Oder an diesem Board hängt noch 
was an den ISP Pins dran.
Sonst fällt mir im Moment auch nichts ein...

HTH,
Lötnix

von Jonas (Gast)


Lesenswert?

Hallo Lötnix,

ich have mich jetzt auch damit abgefunden, dass es wohl ein Defekt ist.
Ein Bekannter von mir, der sich damit ziemlich gut auskennt, meint das 
selbe.
Trotzdem vielen Dank.

Gruß Jonas

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.