Ich wollte gerade mal die Firmware auf meinem Tester aktualisieren.
Beim letzten mal klappte das sofort ohne Probleme, was mich ehrlich gesagt schon gewundert hat.
Eigentlich bin ich es gewohnt, daß es jedesmal, wenn ich versuche einen AVR zu programmieren, irgendwo hakt.
Daher verwende ich dafür auch ein altes Netbook mit Windows XP, mit dem ich sonst nichts mache, um sicherzustellen, daß sich nicht irgendwo irgendeine Konfiguration ändert. Die letzte Benutzung war daher auch die Programmierung des RAM-Testers.
Dieses mal gibt's - wie gewohnt - wieder irgendeine Fehlermeldung:
Upload firmware
avrdude.exe: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "avrdude.conf"
Using Port : usb
Using Programmer : avrispmkii
avrdude.exe: usbdev_open(): Found AVRISP mkII, serno: 000200106398
AVR Part : ATmega2560
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 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500V2
Description : Atmel AVR ISP mkII
Programmer Model: AVRISP mkII
Hardware Version: 1
Firmware Version Master : 1.23
Vtarget : 5.0 V
SCK period : 10.37 us
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude.exe: Device signature = 0x000104
avrdude.exe: Expected signature for ATmega2560 is 1E 98 01
Double check chip, or use -F to override this check.
avrdude.exe done. Thank you.
Alles anzeigen
Also gut, dann nochmal mit dem -F Parameter:
Upload firmware
avrdude.exe: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "avrdude.conf"
Using Port : usb
Using Programmer : avrispmkii
avrdude.exe: usbdev_open(): Found AVRISP mkII, serno: 000200106398
AVR Part : ATmega2560
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 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500V2
Description : Atmel AVR ISP mkII
Programmer Model: AVRISP mkII
Hardware Version: 1
Firmware Version Master : 1.23
Vtarget : 5.0 V
SCK period : 10.37 us
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude.exe: Device signature = 0x000202
avrdude.exe: Expected signature for ATmega2560 is 1E 98 01
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
avrdude.exe: safemode: efuse reads as 0
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: stk500v2_command(): command failed
avrdude.exe: stk500v2_program_enable(): bad AVRISPmkII connection status: Unknown status 0x00
avrdude.exe: reading input file "SRAM-DRAM-Tester_v15.ino_atmega2560_16000000L.hex"
avrdude.exe: writing flash (181322 bytes):
Writing | | 0% 0.00savrdude.exe: stk500v2_command(): warning: Samplin
g of the RDY/nBSY pin timed out
avrdude.exe: stk500v2_paged_write: write command failed
Writing | ################################################## | 100% 544.03s
avrdude.exe: 181322 bytes of flash written
avrdude.exe: verifying flash memory against SRAM-DRAM-Tester_v15.ino_atmega2560_16000000L.hex:
avrdude.exe: load data flash data from input file SRAM-DRAM-Tester_v15.ino_atmega2560_16000000L.hex:
avrdude.exe: input file SRAM-DRAM-Tester_v15.ino_atmega2560_16000000L.hex contains 181322 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 85.34s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0xff != 0x0c
avrdude.exe: verification error; content mismatch
avrdude.exe: safemode: lfuse reads as FF
avrdude.exe: safemode: hfuse reads as FF
avrdude.exe: safemode: efuse reads as FF
avrdude.exe: safemode: lfuse changed! Was 0, and is now ff
Would you like this fuse to be changed back? [y/n]
Alles anzeigen
An der Stelle habe ich abgebrochen.Man beachte, daß der Programmiervorgang knapp 10 Minuten gedauert hat.
Reset am Tester gedrückt: Alte Firmware noch drin.
Also war weder das Löschen, noch das Programmieren erfolgreich.
Ehrlich gesagt verstehe ich nicht, warum es so schwierig ist, Microcontroller und ähnliches zu programmieren.
Den Herstellern sollte doch daran gelegen sein, etwas funktionsfähiges anbieten zu können.
Aber duch die Bank wird überall immer wieder von Schwierigkeiten berichtet.
Da kann einem echt der Spaß vergehen.