URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14998>
Summary: Signature Bytes read in wrong order (avr910 mode)
Project: AVR Downloader/UploaDEr
Submitted by: None
Submitted on: Do 17.11.2005 um 22:17
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: Klaus Leidinger
Originator Email: [EMAIL PROTECTED]
Open/Closed: Open
_______________________________________________________
Details:
Hello,
Result of reading the signature Bytes has to be turned, as done in avrdude
5.0 for butterfly/avr109/avr911 Programmers.
Please put this in the avr910.c also.
Thanks,
Klaus
static int avr910_read_sig_bytes(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m)
{
+ unsigned char tmp;
if (m->size < 3) {
fprintf(stderr, "%s: memsize too small for sig byte read", progname);
return -1;
avr910_send(pgm, "s", 1);
avr910_recv(pgm, (char *)m->buf, 3);
+ /* Returned signature has wrong order. */
+ tmp = m->buf[2];
+ m->buf[2] = m->buf[0];
+ m->buf[0] = tmp;
return 3;
}
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
klaus --AT-- mikrocontroller-projekte --PUNKT-- de | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14998>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
_______________________________________________
avrdude-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev