-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug #17487] AVR RC oscillator calibration routine not supported by JTAGICE mkii #71
Comments
John Voltz Here is my update patch |
Joerg Wunsch <joerg_wunsch> I promised to handle that before releasing 5.2. |
Joerg Wunsch <joerg_wunsch> The part of the patch implementing the -O option has been I still feel we should seek for a more general method to |
John Voltz 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 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 Not long after submitting my patch I discovered a nasty mistake in my code. Here's patch #3 |
Charles Goyard Hi, |
Since |
Given that this issue has been there for so long and JTAG ICE mkII has been obsolete for quite some time, I am going to cloe this one. We can always re-open if PR is raised. |
The contents of the patch is attached here for easier reference.
|
John Voltz ninevoltz@metalink.net
Mon 21 Aug 2006 12:05:01 PM UTC
This is a feature request rather than a bug.
AVRDUDE currently does not support RC oscillator calibration as outlined in the AVR053 appnote.
file #10564: RC calibration.pdf
file #10757: avrdudeupdate.tar.gz
file #12867: arbitrary_rw.patch
file #12868: mistake.patch
file #12869: fixed_arbitrary_rw.patch
This issue was migrated from https://savannah.nongnu.org/bugs/?17487
The text was updated successfully, but these errors were encountered: