avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] OscCal


From: Brian Dean
Subject: Re: [avrdude-dev] OscCal
Date: Sun, 19 Sep 2004 23:57:10 -0400
User-agent: Mutt/1.4.2.1i

On Fri, Sep 17, 2004 at 06:15:26PM +0200, Catellani S.r.l. wrote:

> I work with a STK200 programmer and i need to read, from a tiny12,
> the calibration byte and program it in flash memory at address
> 0x3fe.  How can i do it, using AVRDUDE in command line mode?

Hmm, this is untested, but you could try something like this:

     echo w flash 0x3fe 0x`echo d cal | avrdude -p tiny12 -t | grep '^0000 ' | 
tr -s ' ' | cut -f2 -d' '` > oscal.tmp
     cat oscal.tmp | avrdude -p tiny12 -t

This is two command lines - on MacOS X at least, I couldn't chain it
into 1 command line because you end up with two instances of avrdude
running and of course the chip doesn't like that.

-Brian
-- 
Brian Dean
BDMICRO - ATmega128 Based MAVRIC Controllers
http://www.bdmicro.com/




reply via email to

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