One thing I've done in the past is to use a location that I know will not be used by my programs. For example, an interrupt vector that will always be unused is a good place. You can have srec stuff the crc there, then your program can always read that location. Unfortunately, all my example code is for the ARM, not the AVR. If you would like it, I can send it to you off list.
Keith On Fri, 31 Mar 2006, Uwe Fechner wrote: > Hello, > > I succeeded in adding the crc to the .hex program code. > > But how can I access this crc from within the program? > > Any chance, to find out at compile time, which adress the last > byte of the program code will have, when the program > is compiled? > > Any help appriciated: > > Uwe Fechenr > > > _______________________________________________ > AVR-GCC-list mailing list > AVR-GCC-list@nongnu.org > http://lists.nongnu.org/mailman/listinfo/avr-gcc-list > _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list