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

 
 

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

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

Submitted by:  None
Submitted on:  Mon 21 Aug 2006 12:05:01 PM UTC  
 
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

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

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

Hi,
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.
Regards,
Charles

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
committed.

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 18 Sep 2006 09:51:29 PM UTC, comment #2:

I promised to handle that before releasing 5.2.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
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.

Anonymous

 

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 26 May 2007 07:54:21 PM UTCninevoltz9Attached File-=>Added fixed_arbitrary_rw.patch, #12869
    Sat 26 May 2007 07:49:33 PM UTCninevoltz9Attached File-=>Added mistake.patch, #12868
    Sat 26 May 2007 06:40:39 PM UTCninevoltz9Attached File-=>Added arbitrary_rw.patch, #12867
    Mon 09 Oct 2006 02:38:41 PM UTCjoerg_wunschPriority9 - Immediate=>5 - Normal
      StatusNone=>In Progress
    Mon 18 Sep 2006 09:51:29 PM UTCjoerg_wunschPriority3 - Low=>9 - Immediate
      Assigned toNone=>joerg_wunsch
    Wed 13 Sep 2006 09:12:20 PM UTCninevoltz9Attached File-=>Added avrdudeupdate.tar.gz, #10757
    Fri 01 Sep 2006 08:55:19 PM UTCjoerg_wunschPriority5 - Normal=>3 - Low
    Fri 01 Sep 2006 08:54:57 PM UTCjoerg_wunschSeverity3 - Normal=>1 - Wish
    Mon 21 Aug 2006 12:08:29 PM UTCjoerg_wunschSummaryAVR RC oscillator calibration routine not supported=>AVR RC oscillator calibration routine not supported (feature request)
    Mon 21 Aug 2006 12:05:01 PM UTCNoneAttached File-=>Added RC calibration.pdf, #10564
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup