avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] 'immediate mode' for file input


From: Brian Dean
Subject: [avrdude-dev] 'immediate mode' for file input
Date: Sat, 19 Apr 2003 14:52:37 -0400
User-agent: Mutt/1.4.1i

Hi,

By request, I have implemented an 'immediate mode' for file input.
This has been requested as an alternative for downloading small
memories such as fuse bytes.  By specifying the single byte value on
the command line, it eliminates the need to create single-byte files
or use the interactive terminal mode.

Byte values can be entered using hex, '0x2e' for example, octal '056',
or decimal.  The standard library routine strtoul() is used with a
base of 0, so the base is autodetected which usually does the right
thing.

An example of its use is as follows:

        avrdude -c stk500 -p m128 -m efuse -f m -i 0xff

Where:

        -m efuse - selects the extended fuse byte

        -f m     - selects immediate mode file type

        -i 0xff  - specifies the input byte value (where the filename
                   would normally be)

I've tested to make sure that this didn't break regular file uploads
and it doesn't seem to, but please keep an eye out for problems since
I needed to rearrange some of the fileio code.

Also, this is post-release so it shouldn't impact the release if there
are problems.

Cheers,
-Brian
-- 
Brian Dean
address@hidden
http://www.bsdhome.com/
http://www.bdmicro.com/




reply via email to

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