AVR 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: |
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 | Status | None | Fixed | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-4b48.
Corresponding source code
There is a bug in stk500.c that prevents the fosc command from
working. Here is an example:
avrdude> fosc 3.7M
avrdude: stk500_set_fosc(): f = 3.700 MHz too high, using 3.686 MHz
avrdude> 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