Problem bei flash ATMega128 (AVRDUDE + avrispmkII)

Gast #3598932
Lesenswert?

Hallo Ich versuche einen ATMega128 mit AVRDUE zu programmieren
1
avrdude.exe -c avrispmkII -P usb:27:90 -B 1 -p ATMega128 -e -u -U flash:w:m128flash.hex:i 2>"c:\output.txt

und bekomme folgenden Output
1
avrdude.exe: AVR device initialized and ready to accept instructions
2

3
Reading | ################################################## | 100% 0.00s
4

5
avrdude.exe: Device signature = 0x1e9702
6
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
7
             To disable this feature, specify the -D option.
8
avrdude.exe: erasing chip
9
avrdude.exe: reading input file "m128flash.hex"
10
avrdude.exe: writing flash (21352 bytes):
11

12
Writing | avrdude.exe: stk500v2_command(): warning: Command timed out
13
avrdude.exe: stk500v2_paged_write: write command failed
14
################################################## | 100% 11.50s
15

16
avrdude.exe: 21352 bytes of flash written
17
avrdude.exe: verifying flash memory against m128flash.hex:
18
avrdude.exe: load data flash data from input file m128flash.hex:
19
avrdude.exe: input file m128flash.hex contains 21352 bytes
20
avrdude.exe: reading on-chip flash data:
21

22
Reading | ################################################## | 100% 6.98s
23

24
avrdude.exe: verifying ...
25
avrdude.exe: verification error, first mismatch at byte 0x0000
26
             0x00 != 0x0c
27
avrdude.exe: verification error; content mismatch
28

29
avrdude.exe done.  Thank you.

Schreiben er FUSES mit
1
avrdude.exe -c avrispmkII -P usb:27:90 -B 125 -p ATmega128 -u -U lfuse:w:0xdf:m \ -u -U hfuse:w:0xdf:m \ -u -U efuse:w:0xff:m

geht problemlos. Hat jemand eine Idee was beim Plashen schief geht?

Danke und Gruß

Detlev

P.S. Der EEPROM Inhalt kann auch nict geschrieben werden
Gast #3599308
Lesenswert?

Hallo Zusammen ich hab das Problem gelöst

das Problem heißt nicht AVRDUDE oder meine Parameter sonder
avrsipmkII Firmware

Ich hatte vorher mit dem ATMEL Studio 6.2 bet herum gespielt

die hat mir die Firmware 1.23 aud das mkII geflasht
1
Programmer Type : STK500V2
2
Description     : Atmel AVR ISP mkII
3
Programmer Model: AVRISP mkII
4
Hardware Version: 1
5
Firmware Version Master : 1.23
6
Vtarget         : 5.0 V
7
SCK period      : 1.00 us

nun habe ich einen downgrade auf eine ältere Firmware variante gemacht
1
 Programmer Type : STK500V2
2
 Description     : Atmel AVR ISP mkII
3
 Programmer Model: AVRISP mkII
4
 Hardware Version: 1
5
 Firmware Version Master : 1.13
6
 Vtarget         : 5.0 V
7
 SCK period      : 1.00 us


und siehe da es geht,
1
avrdude.exe: writing flash (21352 bytes):
2

3
Writing | ################################################## | 100% 1.73s
4

5
avrdude.exe: 21352 bytes of flash written
6
avrdude.exe: verifying flash memory against m128flash.hex:
7
avrdude.exe: load data flash data from input file m128flash.h
8
ex:
9
avrdude.exe: input file m128flash.hex auto detected as Intel
10
Hex
11
avrdude.exe: input file m128flash.hex contains 21352 bytes
12
avrdude.exe: reading on-chip flash data:
13

14
Reading | ################################################## | 100% 7.61s
15

16
avrdude.exe: verifying ...
17
avrdude.exe: 21352 bytes of flash verified
18

19
avrdude.exe done.  Thank you.



Sorry für meine ungedult

Wünsche euch noch einen schönen 1. April

Gruß

Detlev

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren