[EMAIL PROTECTED] (Erik Christiansen) wrote:
> Both avrdude-5.1 and avrdude-5.3.1 seem to think that the ATtiny15
> has PAGEL and BS2 signals:
There seems to be a logic flaw in that module. The stk500v1 module
doesn't support high-voltage programming anyway. However, as this
only affects the extended parameters, it should not matter much for
your ATtiny15.
You could try filling in dummies for that into the config file. I'm
also attaching a temptative fix that reduces the number of extended
parameters to just the size of EEPROM in case PAGEL and BS2 are not
defined.
> An experimental attempt to program via ISP, anyway:
>
> $ avrdude -c stk500v1 -p t15 -e -U flash:w:obj/flash.srec
>
> resulted in a segmentation fault.
Can you analyze that? I don't have a v1 firmware STK500 handy here to
reproduce it (and will probably also lack an ATtiny15). It's not
supposed to segfault, obviously.
Any chance to upgrade the device to a v2 firmware?
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Index: stk500.c
===================================================================
RCS file: /home/cvs/avrdude/avrdude/stk500.c,v
retrieving revision 1.55
diff -u -u -r1.55 stk500.c
--- stk500.c 30 Jan 2007 13:41:53 -0000 1.55
+++ stk500.c 6 Mar 2007 07:08:24 -0000
@@ -490,16 +490,20 @@
progname, p->desc);
}
else {
- buf[0] = n_extparms+1;
+ n_extparms = 1; /* EEPROM only */
+ }
- /*
- * m is currently pointing to eeprom memory if the part has it
- */
- if (m)
- buf[1] = m->page_size;
- else
- buf[1] = 0;
-
+ buf[0] = n_extparms+1;
+
+ /*
+ * m is currently pointing to eeprom memory if the part has it
+ */
+ if (m)
+ buf[1] = m->page_size;
+ else
+ buf[1] = 0;
+
+ if (n_extparms > 1) {
buf[2] = p->pagel;
buf[3] = p->bs2;
@@ -509,12 +513,12 @@
else
buf[4] = 1;
}
-
- rc = stk500_set_extended_parms(pgm, n_extparms+1, buf);
- if (rc) {
- fprintf(stderr, "%s: stk500_initialize(): failed\n", progname);
- exit(1);
- }
+ }
+
+ rc = stk500_set_extended_parms(pgm, n_extparms+1, buf);
+ if (rc) {
+ fprintf(stderr, "%s: stk500_initialize(): failed\n", progname);
+ exit(1);
}
}
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat