avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [bugs #9526] stk500 fosc command broken


From: anonymous
Subject: [avrdude-dev] [bugs #9526] stk500 fosc command broken
Date: Thu, 01 Jul 2004 16:15:26 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040211 Firefox/0.8

This mail is an automated notification from the bugs tracker
 of the project: AVR Downloader/UploaDEr.




/**************************************************************************/
[bugs #9526] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=9526>
Project: AVR Downloader/UploaDEr
Submitted by: 0
On: Thu 07/01/2004 at 16:13

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  None
Status:  Open


Summary:  stk500 fosc command broken

Original Submission:  There is a bug in stk500.c that prevents the fosc command 
from
working.  Here is an example:

avrdude> fosc 3.7M
>>> fosc 3.7M
avrdude: stk500_set_fosc(): f = 3.700 MHz too high, using 3.686 MHz
avrdude> parm
>>> parm
Vtarget         : 5.1 V
Varef           : 5.1 V
Oscillator      : 16.098 kHz
SCK period      : 1.1 us

This line
    cmatch = (unsigned)(fbase / (2 * v * ps[idx]));
needs to change to this
    cmatch = (unsigned)(fbase / (2 * fosc * ps[idx])) - 1;

I will submit a patch for this.

Galen Seitz













For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=9526>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]