Portál AbcLinuxu, 4. května 2025 17:33
>avrdude -p ?
#------------------------------------------------------------ # AT89S2051 #------------------------------------------------------------ part id = "s2051"; desc = "AT89S2051"; # stk500_devcode = 0x12; # avr910_devcode = 0x55; signature = 0x1e 0x23 0xff; chip_erase_delay = 4000; pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1", "x x x x x x x x x x x x x x x x"; chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x", "x x x x x x x x x x x x x x x x"; timeout = 15; stabdelay = 100; cmdexedelay = 25; synchloops = 1; bytedelay = 0; # pollindex = 3; pollvalue = 0x01; predelay = 1; postdelay = 1; # pollmethod = 0; memory "flash" size = 2048; paged = yes; page_size = 32; num_pages = 64; min_write_delay = 4500; max_write_delay = 20000; readback_p1 = 0xff; readback_p2 = 0xff; read = " 0 0 1 0 0 0 0 0", " x x x x a11 a10 a9 a8", " a7 a6 a5 a4 a3 a2 a1 a0", " o o o o o o o o"; loadpage_hi = " 0 0 1 1 0 0 0 0", " x x x x a11 a10 a9 a8", " a7 a6 a5 0 0 0 0 0", " o o o o o o o o"; write = " 0 1 0 0 0 0 0 0", " x x x x a11 a10 a9 a8", " a7 a6 a5 a4 a3 a2 a1 a0", " i i i i i i i i"; writepage = " 0 1 0 1 0 0 0 0", " x x x x a11 a10 a9 a8", " a7 a6 a5 0 0 0 0 0", " i i i i i i i i"; mode = 0x21; delay = 4; blocksize = 32; readsize = 64; ; memory "signature" size = 3; read = "0 0 1 0 1 0 0 0 x x x x x x x x", "x x x x x x a1 a0 o o o o o o o o"; ; memory "lock" size = 1; read = "0 0 1 0 0 1 0 0 x x x x x x x x", "x x x x x x x x x x x x x x o o"; write = "1 0 1 0 1 1 0 0 1 1 1 0 0 x i i", "x x x x x x x x x x x x x x x x"; ; memory "fuse" size = 1; read = "0 0 1 0 0 0 0 1 x x x x x x x x", "x x x x x x x x x x x x o o o o"; write = "1 0 1 0 1 1 0 0 0 0 0 1 i i i i", "x x x x x x x x x x x x x x x x"; ; ;ale když spustím avrdude a chci precist/zapsat flashpamet procesoru zkoncim na teto chybe:
avrdude -c stk500v2 -p s2051 -P /dev/ttyUSB0 -U flash:r:pokus.hex avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.03s avrdude: Device signature = 0x1e23ff avrdude: reading flash memory: Reading | | 0% 0.00savrdude: stk500v2_paged_load: read instruction not defined for part "AT89S2051" avrdude: failed to read all of flash memory, rc=-1 avrdude: safemode: Fuses OK avrdude done. Thank you.mate prosim nekdo nejaky napad jak by se to dalo vyresit, vypada to na chybu pri cteni stranek. Mozna by pomohlo aby se cetlo po bytech, ale nevim jak.
Dobrý den, celou dobu je zde řeč o AT89_S_2051, které právě takhle programovat jdou! Více informací najdete v katalogovém listu.
The AT89S2051/S4051 is a low-voltage, high-performance CMOS 8-bit microcontroller with 2K/4K bytes of In-System Programmable (ISP) Flash program memory.
Na velké šváby (89S5X) používám program uisp viz. http://hw.cz/Teorie-a-praxe/Software/ART970-UISP---AVR-In-System-Programmer.html
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.