Fri 25 Feb 2005 10:15:54 PM UTC, comment #2:
This patch has one small error. The line
+ { "ATtiny2313", 0x91, 0x0A, 2048, 0, 128, 4000, 4000, AVR_TN2313 },
should actually read
+ { "ATtiny2313", 0x91, 0x0A, 2048, 32, 128, 4000, 4000, AVR_TN2313 },
Without the correction of 0 in the 5th field to 32, it is not possible to write to the flash of the Tiny2313. I suggest this correction gets put into the next release.
-John
|
Thu 04 Mar 2004 10:17:40 PM UTC, original submission:
Here are a couple of patches to correct this. I just added it to the parts code, and created a new set of flags. I have tested these using some engineering samples of the tiny2313 that I have with a direct parallel programmer.
--- Avr.C.old 2004-03-04 16:08:23.418755120 -0600
+++ Avr.C 2004-03-04 15:48:05.907844912 -0600
@@ -65,6 +65,7 @@
{ "ATtiny22", 0x91, 0x06, 2048, 0, 128, 4000, 4000, AVR_TN22 },
{ "ATtiny26", 0x91, 0x09, 2048, 32, 128, 4500, 9000, AVR_TN26 },
+ { "ATtiny2313", 0x91, 0x0A, 2048, 0, 128, 4000, 4000, AVR_TN2313 },
#if 0
/* 12V parallel programming only; here just for the evidence */
--- Avr.h.old 2004-03-04 16:08:30.632658440 -0600
+++ Avr.h 2004-03-04 15:47:18.820003352 -0600
@@ -127,6 +127,10 @@
#define AVR_TN26 (AVR_BYTE_POLL | AVR_PAGE_POLL | AVR_LOCK_BOOT | AVR_FUSE_RD \
| AVR_FUSE_NEWWR | AVR_CAL_RD | AVR_FUSE_HIGH)
+
+#define AVR_TN2313 (AVR_BYTE_POLL | AVR_PAGE_POLL | AVR_LOCK_BOOT | AVR_FUSE_RD \
+ | AVR_FUSE_NEWWR | AVR_CAL_RD | AVR_FUSE_HIGH | AVR_FUSE_EXT)
+
#define AT89S51 (AT89S | AT89S_BYTE_POLL | AT89S_LOCK_RD432)
#define AT89S52 (AT89S | AT89S_BYTE_POLL | AT89S_LOCK_RD432)
|