avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Auto write calibration bytes


From: Royce Pereira
Subject: [avr-gcc-list] Auto write calibration bytes
Date: Fri, 23 Nov 2007 20:09:41 +0530

Hi,
I'm using AVRdude.

While programming, I'm trying to retreive, and then write into the 1st 4
eeprom locations,, the calibration bytes.


The device gets programmed. Also the the calibration bytes are read to the
specifie file, but fails while writing to eeprom.

The command line, & subsequent avrdude reply is reproduced below. The
programmer is set to usbasp (default).

How best to acheive this ?  Thanks.
-------------------------------------------------------------------------------------
avrdude -p m32 -u -V -U logger-6pt.hex -U libration:r:calib.hex:i -Ueeprom:w:calib.hex:i -U lfuse:w:0x22:m -U hfuse:w:0xd9:m -U lock:w:0x3c:m

found 2 busses

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e9502
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be
performed
        To disable this feature, specify the -D option.
avrdude: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude: erasing chip
avrdude: reading input file "logger-6pt.hex"
avrdude: input file logger-6pt.hex auto detected as Intel Hex
avrdude: writing flash (16452 bytes):

Writing | ################################################## | 100% 132.27s

avrdude: 16452 bytes of flash written
avrdude: reading calibration memory:

Reading | ################################################## | 100% 0.02s

avrdude: writing output file "calib.hex"
avrdude: reading input file "calib.hex"
avrdude: WARNING: no end of file record found for Intel Hex file "calib.hex"
avrdude: writing eeprom (0 bytes): <-------------------------------------------------------The error I get.

Writing | ################################################## | 100% 0.00s

avrdude: 0 bytes of eeprom written
avrdude: reading input file "0x22"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.02s

avrdude: 1 bytes of lfuse written
avrdude: reading input file "0xd9"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of hfuse written
avrdude: reading input file "0x3c"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.02s

avrdude: 1 bytes of lock written

avrdude done.  Thank you.

Thanks & regards,

--Royce.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]