bugAVR Downloader/UploaDEr - Bugs: bug #9526, stk500 fosc command broken

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9526: stk500 fosc command broken

Submitter:  None
Submitted:  Thu 01 Jul 2004 08:13:00 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Thu 01 Jul 2004 08:13:00 PM UTC, 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


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-07-04 hinni StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code