On 2006-08-07, David Peters <dav...@matrixpd.com> wrote:

>> I'm baffled why people persist in using CRCs in software for
>> things like EEPROM and flash ROM.

> All I'm looking for is a way for the tools to add all of the
> bytes of a code file and embed the sum into the hex file at a
> specific location.  Nothing fancy.

The CRC thing was just a tangential discussion.  Sorry
if we offended you.

I posted a program that would do what you want if you modified
one or two lines of code.  If you care to specify the checksum
format to be used, I could make the required changes for you.

Googling for 5 seconds also finds various free utilities that
do what you want:

http://www.keil.com/support/docs/494.asp?bhcp=1
http://www.logicaldevices.com/utilities.htm

> When the bootloader starts, it adds all the bytes of the app
> space and compares it to the sum that was embdeed into the hex
> file.  If they don't match, it waits for a new app.
>
> It sounds like this can't be done with the GCC tools, so I'll
> have to do it manually.

Whatever.

-- 
Grant Edwards                   grante             Yow!  I'm a fuschia bowling
                                  at               ball somewhere in Brittany
                               visi.com            


Reply via email to