Hallo,
ich habe nach dieser Anleitung aus dem Forum meinen Raspi als Programmiergerät konfiguriert.
Das attiny13a wird auch erkannt:
Code
$ sudo /usr/local/bin/avrdude -c linuxspi -p t13 -P /dev/spidev0.0 -U flash:r:"./flash.bin":r
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9007
avrdude: reading flash memory:
Reading | ################################################## | 100% 0.49s
avrdude: writing output file "./flash.bin"
avrdude: safemode: Fuses OK (E:FF, H:FF, L:6A)
avrdude done. Thank you.
Alles anzeigen
Beim Flashen mit AVRDUDE habe ich allerdings ein "seltsames" Problem.
Ich bekomme wenn ich etwas "neues" flashen möchte immer Fehler dieser Art:
Code
sudo /usr/local/bin/avrdude -c linuxspi -p t13 -P /dev/spidev0.0 -U flash:w:"empty.hex":a
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9007
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "empty.hex"
avrdude: input file empty.hex auto detected as Intel Hex
avrdude: writing flash (10 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 10 bytes of flash written
avrdude: verifying flash memory against empty.hex:
avrdude: load data flash data from input file empty.hex:
avrdude: input file empty.hex auto detected as Intel Hex
avrdude: input file empty.hex contains 10 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.06s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0xeb != 0x8f
avrdude: verification error; content mismatch
avrdude: safemode: Fuses OK (E:FF, H:FF, L:6A)
avrdude done. Thank you.
Alles anzeigen
Teilweise funktioniert es, wenn ich die "-D" oder "-e" Option setze, aber auch nicht immer.
Das heißt man muss ein paar mal wechseln (mit -D/-e bzw. ohne) dann geht es irgendwann...
Leider bin ich ganz neu bei den µC und stehe daher leider auf dem Schlauch...