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

Submitted by:  None
Submitted on:  Thu 01 Jul 2004 08:13:00 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer 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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 04 Jul 2004 12:14:59 PM UTChinniStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1