pchero
10.01.2009, 20:35
Hi
ich habe mir von der Seite von Ulrich Radig einen USBASP Bausatz gekauft und auch zusammengebaut.
So auslesen klappt wunderbar von dem uC aber das Fuses setzen klappt nicht.
Auslesen:
Return-Code des Programms: 3221225477
---Output---
avrdude.exe: safemode: lfuse reads as 3F
avrdude.exe: safemode: hfuse reads as 9D
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
Would you like this fuse to be changed back? [y/n]
---Errors---
avrdude.exe: Version 5.6cvs, compiled on Nov 10 2008 at 17:15:38
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "C:\WinAVR-20081205\bin\avrdude.conf"
avrdude.exe: WARNING: -E option not supported by this programmer type
Using Port : USB
Using Programmer : usbasp
AVR Part : ATMEGA8515
Chip Erase delay : 9000 us
PAGEL : P00
BS2 : P00
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 128 0 no 512 0 0 9000 9000 0xff 0xff
flash 33 6 64 0 yes 8192 64 128 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : usbasp
Description : USBasp, http://www.fischl.de/usbasp/
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude.exe: Device signature = 0x1e9306
avrdude.exe: current erase-rewrite cycle count is -385 (if being tracked)
avrdude.exe: reading lfuse memory:
Reading | ################################################## | 100% 0.00s
avrdude.exe: writing output file "I:\Download\AVRBurner\AVRBurner\lfuse.hex"
avrdude.exe: reading hfuse memory:
Reading | ################################################## | 100% 0.00s
avrdude.exe: writing output file "I:\Download\AVRBurner\AVRBurner\hfuse.hex"
"efuse" memory type not defined for part "ATMEGA8515"
avrdude.exe: safemode: Verify error - unable to read lfuse properly. Programmer may not be reliable.
avrdude.exe: safemode: lfuse changed! Was 3f, and is now 0
Eingesetzt wird WINAVR und AVR Burner als GUI für AVR Dude
Diese Fuses hatte ich versucht zu setzen
http://www.abload.de/thumb/fusesw1o8.png (http://www.abload.de/image.php?img=fusesw1o8.png)
Return-Code des Programms: 3221225477
---Output---
Would you like this fuse to be changed back? [y/n]
---Errors---
avrdude.exe: WARNING: -E option not supported by this programmer type
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude.exe: Device signature = 0x1e9306
avrdude.exe: reading input file "0x3F"
avrdude.exe: writing lfuse (1 bytes):
Writing | ***failed;
################################################## | 100% 0.11s
avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 0x3F:
avrdude.exe: load data lfuse data from input file 0x3F:
avrdude.exe: input file 0x3F contains 1 bytes
avrdude.exe: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.00s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0x3f != 0x00
avrdude.exe: verification error; content mismatch
avrdude.exe: safemode: lfuse changed! Was 3f, and is now 0
Das war der Error Code der mir ausgespuckt wurde.
Das ISP Kabel is selbstbau. Da auf der Platine ein 5 Pin ISP war
1 GND -> 8
2 MOSI -> 1
3 MISO -> 9
4 SCK -> 7
5 RESET-> 5
Vorne der Endpin auf der Platine in der Mitte die Bezeichung und zuletzt welche Ader des Flachbandskabel.
Auf der USBASP Platine ist JP2 natürlich gesetzt da es ein neuer uC is.
Gruß
p.s. hier mein Erster programmier Versuch:
Return-Code des Programms: 3221225477
---Output---
Would you like this fuse to be changed back? [y/n]
---Errors---
avrdude.exe: WARNING: -E option not supported by this programmer type
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude.exe: Device signature = 0x1e9306
avrdude.exe: current erase-rewrite cycle count is -769 (if being tracked)
avrdude.exe: erasing chip
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: reading input file "I:\Download\led.hex"
avrdude.exe: input file I:\Download\led.hex auto detected as Intel Hex
avrdude.exe: writing flash (3088 bytes):
Writing | ################################################## | 100% 14.84s
avrdude.exe: 3088 bytes of flash written
avrdude.exe: verifying flash memory against I:\Download\led.hex:
avrdude.exe: load data flash data from input file I:\Download\led.hex:
avrdude.exe: input file I:\Download\led.hex auto detected as Intel Hex
avrdude.exe: input file I:\Download\led.hex contains 3088 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 13.64s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0x11 != 0x00
avrdude.exe: verification error; content mismatch
avrdude.exe: safemode: lfuse changed! Was 3f, and is now 0
ich habe mir von der Seite von Ulrich Radig einen USBASP Bausatz gekauft und auch zusammengebaut.
So auslesen klappt wunderbar von dem uC aber das Fuses setzen klappt nicht.
Auslesen:
Return-Code des Programms: 3221225477
---Output---
avrdude.exe: safemode: lfuse reads as 3F
avrdude.exe: safemode: hfuse reads as 9D
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
Would you like this fuse to be changed back? [y/n]
---Errors---
avrdude.exe: Version 5.6cvs, compiled on Nov 10 2008 at 17:15:38
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "C:\WinAVR-20081205\bin\avrdude.conf"
avrdude.exe: WARNING: -E option not supported by this programmer type
Using Port : USB
Using Programmer : usbasp
AVR Part : ATMEGA8515
Chip Erase delay : 9000 us
PAGEL : P00
BS2 : P00
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 128 0 no 512 0 0 9000 9000 0xff 0xff
flash 33 6 64 0 yes 8192 64 128 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : usbasp
Description : USBasp, http://www.fischl.de/usbasp/
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude.exe: Device signature = 0x1e9306
avrdude.exe: current erase-rewrite cycle count is -385 (if being tracked)
avrdude.exe: reading lfuse memory:
Reading | ################################################## | 100% 0.00s
avrdude.exe: writing output file "I:\Download\AVRBurner\AVRBurner\lfuse.hex"
avrdude.exe: reading hfuse memory:
Reading | ################################################## | 100% 0.00s
avrdude.exe: writing output file "I:\Download\AVRBurner\AVRBurner\hfuse.hex"
"efuse" memory type not defined for part "ATMEGA8515"
avrdude.exe: safemode: Verify error - unable to read lfuse properly. Programmer may not be reliable.
avrdude.exe: safemode: lfuse changed! Was 3f, and is now 0
Eingesetzt wird WINAVR und AVR Burner als GUI für AVR Dude
Diese Fuses hatte ich versucht zu setzen
http://www.abload.de/thumb/fusesw1o8.png (http://www.abload.de/image.php?img=fusesw1o8.png)
Return-Code des Programms: 3221225477
---Output---
Would you like this fuse to be changed back? [y/n]
---Errors---
avrdude.exe: WARNING: -E option not supported by this programmer type
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude.exe: Device signature = 0x1e9306
avrdude.exe: reading input file "0x3F"
avrdude.exe: writing lfuse (1 bytes):
Writing | ***failed;
################################################## | 100% 0.11s
avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 0x3F:
avrdude.exe: load data lfuse data from input file 0x3F:
avrdude.exe: input file 0x3F contains 1 bytes
avrdude.exe: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.00s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0x3f != 0x00
avrdude.exe: verification error; content mismatch
avrdude.exe: safemode: lfuse changed! Was 3f, and is now 0
Das war der Error Code der mir ausgespuckt wurde.
Das ISP Kabel is selbstbau. Da auf der Platine ein 5 Pin ISP war
1 GND -> 8
2 MOSI -> 1
3 MISO -> 9
4 SCK -> 7
5 RESET-> 5
Vorne der Endpin auf der Platine in der Mitte die Bezeichung und zuletzt welche Ader des Flachbandskabel.
Auf der USBASP Platine ist JP2 natürlich gesetzt da es ein neuer uC is.
Gruß
p.s. hier mein Erster programmier Versuch:
Return-Code des Programms: 3221225477
---Output---
Would you like this fuse to be changed back? [y/n]
---Errors---
avrdude.exe: WARNING: -E option not supported by this programmer type
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude.exe: Device signature = 0x1e9306
avrdude.exe: current erase-rewrite cycle count is -769 (if being tracked)
avrdude.exe: erasing chip
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: reading input file "I:\Download\led.hex"
avrdude.exe: input file I:\Download\led.hex auto detected as Intel Hex
avrdude.exe: writing flash (3088 bytes):
Writing | ################################################## | 100% 14.84s
avrdude.exe: 3088 bytes of flash written
avrdude.exe: verifying flash memory against I:\Download\led.hex:
avrdude.exe: load data flash data from input file I:\Download\led.hex:
avrdude.exe: input file I:\Download\led.hex auto detected as Intel Hex
avrdude.exe: input file I:\Download\led.hex contains 3088 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 13.64s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0x11 != 0x00
avrdude.exe: verification error; content mismatch
avrdude.exe: safemode: lfuse changed! Was 3f, and is now 0