[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Writing Oscillator Cal. byte
From: |
Peeter Vois |
Subject: |
Re: [avr-gcc-list] Writing Oscillator Cal. byte |
Date: |
Fri, 20 Aug 2004 21:57:30 +0300 |
Hi,
I use under Linux a sh script that uses avrdude to set configuration
bits:
---
#!/bin/sh
GENERAL=" -c pets2 -p ATMEGA8 -E noreset"
# show the available memories
#avrdude $GENERAL -v
# set fuse bits
# 4MHz chrystal
#
echo write lfuse 0 0xEF | avrdude $GENERAL -n -t
---
Ühel ilusal kenal päeval Thu, 19 Aug 2004 10:49:48 +0530
"Royce & Sharal Pereira" <address@hidden> kirjutas:
> Hi,
> Is there a way to automatically extract the Osc. Cal byte (eg. the 4
> MHz byte for ATMega8) & insert it into the flash hex file during
> programming at a predetermined location?
>
> I'm using SP12. There is a Perl script example to do this under Linux,
> but I'm using windows. Is this possible under windows? There is no
> clue to do this in AVR Dude too.
>
> I guess one can read the cal byte & manually programme the flash
> location, but this could be prone to error.
>
> Thanks,
> --Royce.
>
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list