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: Jan-Hinnerk Reichert
Subject: [avrdude-dev] [bugs #9526] stk500 fosc command broken
Date: Sun, 04 Jul 2004 08:18:28 -0400
User-agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)

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

/**************************************************************************/
[bugs #9526] Latest Modifications:

Changes by: 
                Jan-Hinnerk Reichert <address@hidden>
'Date: 
                Sun 07/04/2004 at 12:14 (MET)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed







/**************************************************************************/
[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 20:13

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


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]