ich bin ein Neuling auf dem Gebiet µC und habe eine Attiny12 sowie den USBasp Programmer.
Beim programmieren kommt, eigentlich nur beim beschreiben:
Warum klappt es nicht obwohl das Auslesen des Speichers und der Fusebits funktioniert?C:\WinAVR-20100110\bin\avrdude.exe -C C:\WinAVR-20100110\bin\avrdude.conf -p t12 -P usb -c usbasp -i 80 -U flash:w:C:\Users\Felix\Documents\Exampel_AVR\led_asm\led.hex:i
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude.exe: Device signature = 0x1e9005
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: reading input file "C:\Users\Felix\Documents\Exampel_AVR\led_asm\led.hex"
avrdude.exe: writing flash (8 bytes):
Writing | ###### ***failed;
############################################ | 100% 0.31s
avrdude.exe: 8 bytes of flash written
avrdude.exe: verifying flash memory against C:\Users\Felix\Documents\Exampel_AVR\led_asm\led.hex:
avrdude.exe: load data flash data from input file C:\Users\Felix\Documents\Exampel_AVR\led_asm\led.hex:
avrdude.exe: input file C:\Users\Felix\Documents\Exampel_AVR\led_asm\led.hex contains 8 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 0.06s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0001
0xef != 0xcf
avrdude.exe: verification error; content mismatch
avrdude.exe done. Thank you.
Anfangs hatte auch noch ein Mini-Programm funktioniert dasss nur den PortB auf High legt, aber sobald ich dass Programm ergänzt hatte ging es nicht mehr.
Was ich eben auch noch festgestellt habe, das erste mal nachdem der Programmer eingesteckt wird und an die Schaltung Spannung angelegt wird funktioniert die Übertragung.