I use srec_cat to put the CRC anywhere you want. For example, to put a crc32 at the end of the hex file:
srec_cat in.hex -Intel -Little_Endian_CRC32 -max in.hex -Intel \ -Output out.hex Keith On Fri, 31 Mar 2006, Uwe Fechner wrote: > Hallo, > > I want to check the crc of the program memory of an avr chip during the > power-on > selfcheck. > > There are crc16 routines in the avr-libc: that is fine. > > But what is the best way, to include the crc of the program memory in > the hex > file, that is created by the make file? > > Until now we have an external tool (written in delphi) to do this. > > Is there a way, that is easier or cleaner, to include the crc of the hex > file at the > end of the hex file, before it gets programmed, and to access it from the > source code? > > Any suggestions? > > Regards: > > Uwe Fechner > > > _______________________________________________ > 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