Joerg Wunsch wrote:
"Daniel O'Connor" <[EMAIL PROTECTED]> wrote:
I added a 'flash' target to my makefile which depends on the
object file.
The standard Makefile template comes with a "program" target that does
the same.
Still, it leaves the thing about how to program the fuses. Ah,
there's been that idea to support fuses throughout the entire
toolchain, so you could specify it in your C code...
On some microcontrollers I've used, the fuses are programmed as part of
the memory. For example, on the COP8 devices, the code memory is from
0x0000 to 0x7fff, while the fuses are from 0x8000 to 0x8005 (IIRC).
Perhaps it's possible to pick a similar "standard" for the AVRs, so that
gcc support for fuses needs nothing more than a new placed section in
the linker files, along with a few macros in a C header file to fill the
section, and support from avrdude and other programmers. Obviously
you'd also want to get Atmel's support in AVR Studio, but the benefits
of having the fuse settings as part of the hex file would be large.
mvh.,
David
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat