bugAVR Downloader/UploaDEr - Bugs: bug #17487, AVR RC oscillator calibration...


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

bug #17487: AVR RC oscillator calibration routine not supported (feature request)

Submitter:  None
Submitted:  Mon 21 Aug 2006 12:05:01 PM UTC
Category:  None Severity:  1 - Wish
Priority:  5 - Normal Item Group:  None
Status:  In Progress Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  John Voltz
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  None Programmer hardware: 
Device type: 

Jump to the original submission

Fri 28 Aug 2009 07:51:09 PM UTC, comment #7: 

the documentation states JTAG ICE mkII is supported for calibration, but it is not.
According to the AVR067, the programmer has to issue a  CMND_ISP_PACKET containing the ISP CMD_OSCCAL.
A quick fix is to change the manual page. A nice thing would be to add the support.

Charles Goyard <cgo>
Sat 26 May 2007 07:49:33 PM UTC, comment #6: 

Not long after submitting my patch I discovered a nasty mistake in my code. Here's patch #3

(file #12868)

John Voltz <ninevoltz9>
Sat 26 May 2007 07:08:28 PM UTC, comment #5: 

I forgot to mention how my last patch is useful. It can be used for RC oscillator calibration by first reading the AVRs EEPROM to a temporary file, then you can write it back to the AVR in an arbitrary location in the flash or EEPROM.

It can also be used to store configuration constants in flash, which is my latest interest since I have been having a lot of trouble lately with EEPROM corruption, and yes, I am using the brown-out detector in my application! :oP

John Voltz <ninevoltz9>
Sat 26 May 2007 06:46:24 PM UTC, comment #4: 

I just submitted a patch to allow avrdude to read and write at arbitrary memory locations. You simply specify a block length (in bytes) followed by the byte offset in the hex file then finally the byte offset in flash or eeprom.

Here's a command line example:

avrdude -cstk500v2 -B4 -pm16 -P/dev/ttyS0 -v -e -Uflash:w:main.hex:i,10,0,6 

this will write 10 bytes from byte offset 0 in main.hex to byte offset 6 in flash

values can be in decimal or hex, and all are optional (will default to zero). Values must be multiples of two since the AVR memory is arranged in 16-bit words.

John Voltz <ninevoltz9>
Mon 09 Oct 2006 02:38:41 PM UTC, comment #3: 

The part of the patch implementing the -O option has been

I still feel we should seek for a more general method to
transfer the result to an arbitrary location.

Joerg Wunsch <joerg_wunsch>
Group administrator
Mon 18 Sep 2006 09:51:29 PM UTC, comment #2: 

I promised to handle that before releasing 5.2.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 13 Sep 2006 09:12:20 PM UTC, comment #1: 

Here is my update patch

John Voltz <ninevoltz9>
Mon 21 Aug 2006 12:05:01 PM UTC, original submission:  

This is a feature request rather than a bug.

AVRDUDE currently does not support RC oscillator calibration as outlined in the AVR053 appnote.



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

Attached Files
file #12869:  fixed_arbitrary_rw.patch added by ninevoltz9 (13KiB - text/x-patch - Fixed version of my arbitrary_rw patch)
file #12868:  mistake.patch added by ninevoltz9 (2KiB - text/x-patch - Fix for my stupid mistake)
file #12867:  arbitrary_rw.patch added by ninevoltz9 (13KiB - text/x-patch - Here's my patch to read/write arbitrary memory locations (AWESOME IMHO))
file #10757:  avrdudeupdate.tar.gz added by ninevoltz9 (34KiB - application/x-gzip - Patch, doc, and changelog)
file #10564:  RC calibration.pdf added by None (90KiB - application/pdf - AVR053)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cgo (Posted a comment)
  • -email is unavailable- added by ninevoltz9 (Updated the item)

    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 13 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-26 ninevoltz9 Attached File- Added fixed_arbitrary_rw.patch, #12869
    2007-05-26 ninevoltz9 Attached File- Added mistake.patch, #12868
    2007-05-26 ninevoltz9 Attached File- Added arbitrary_rw.patch, #12867
    2006-10-09 joerg_wunsch Priority9 - Immediate 5 - Normal
        StatusNone In Progress
    2006-09-18 joerg_wunsch Priority3 - Low 9 - Immediate
        Assigned toNone joerg_wunsch
    2006-09-13 ninevoltz9 Attached File- Added avrdudeupdate.tar.gz, #10757
    2006-09-01 joerg_wunsch Priority5 - Normal 3 - Low
    2006-09-01 joerg_wunsch Severity3 - Normal 1 - Wish
    2006-08-21 joerg_wunsch SummaryAVR RC oscillator calibration routine not supported AVR RC oscillator calibration routine not supported (feature request)
    2006-08-21 None Attached File- Added RC calibration.pdf, #10564
        Carbon-Copy- Added -unavailable-

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code