Gast
#219370
Hallo! Ich habe ein attiny2313 Programmierproblem. Umgebung: uisp-20050207 binutils-2.15 gcc-3.4.4 avr-libc-1.2.5 Der gcc ist für den 2313 gepatched worden. Das Compilieren und Linken funktioniert. Der MC ist ansprechbar: hein:~ uisp -dprog=stk200 --rd_fuses Atmel AVR ATtiny2313 is found. Fuse Low Byte = 0x62 Fuse High Byte = 0xdf Fuse Extended Byte = 0xff Calibration Byte = 0x5a -- Read Only Lock Bits = 0xff BLB12 -> 1 BLB11 -> 1 BLB02 -> 1 BLB01 -> 1 LB2 -> 1 LB1 -> 1 Aber ein Programmieren schlägt fehl: hein:~ uisp -dprog=stk200 --upload if=tktnau.hex Atmel AVR ATtiny2313 is found. Uploading: flash Error: Data polling readback status: write=0x12 read=0xff If device was erased disable polling with the -dno-poll option. Auf der SCK-Leitung sehe ich ein übliches Signal. Der MC hat einen 100nF über der Versorgungsspannung. Reset ist mit 4,7k oder 10k gegen Vcc und einem 100nF gegen GND beschaltet. Was mir noch aufgefallen ist, ist daß das Fuse Low Byte = 0x62 ist und nicht, wie das Datenblatt sagt = 0x64. Das bedeutet 4Mhz statt 8Mhz interner Takt. Der MC ist neu. Wer hat eine Idee? Gruß Axel