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)

Submitted by:  None
Submitted on:  Mon Aug 21 12:05:01 2006  
Category: NoneSeverity: 1 - Wish
Priority: 5 - NormalItem Group: None
Status: In ProgressPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: John Voltz
Originator Email: -unavailable-Open/Closed: Open
Release: NoneProgrammer hardware: 
Device type: 

(Jump to the original submission Jump to the original submission)

Fri Aug 28 19:51:09 2009, 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 May 26 19:49:33 2007, 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 May 26 19:08:28 2007, 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 May 26 18:46:24 2007, 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 Oct 9 14:38:41 2006, 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>
Project AdministratorIn charge of this item.
Mon Sep 18 21:51:29 2006, comment #2:

I promised to handle that before releasing 5.2.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Wed Sep 13 21:12:20 2006, comment #1:

Here is my update patch

John Voltz <ninevoltz9>
Mon Aug 21 12:05:01 2006, 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.



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


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat May 26 19:54:21 2007ninevoltz9Attached File-=>Added fixed_arbitrary_rw.patch, #12869
    Sat May 26 19:49:33 2007ninevoltz9Attached File-=>Added mistake.patch, #12868
    Sat May 26 18:40:39 2007ninevoltz9Attached File-=>Added arbitrary_rw.patch, #12867
    Mon Oct 9 14:38:41 2006joerg_wunschPriority9 - Immediate=>5 - Normal
      StatusNone=>In Progress
    Mon Sep 18 21:51:29 2006joerg_wunschPriority3 - Low=>9 - Immediate
      Assigned toNone=>joerg_wunsch
    Wed Sep 13 21:12:20 2006ninevoltz9Attached File-=>Added avrdudeupdate.tar.gz, #10757
    Fri Sep 1 20:55:19 2006joerg_wunschPriority5 - Normal=>3 - Low
    Fri Sep 1 20:54:57 2006joerg_wunschSeverity3 - Normal=>1 - Wish
    Mon Aug 21 12:08:29 2006joerg_wunschSummaryAVR RC oscillator calibration routine not supported=>AVR RC oscillator calibration routine not supported (feature request)
    Mon Aug 21 12:05:01 2006NoneAttached File-=>Added RC calibration.pdf, #10564
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1