Anders Johansson

SW checksums and S-Records when uploading code to targets

Discussion created by Anders Johansson on Feb 22, 2007
Latest reply on Feb 28, 2007 by Steve Melnikoff
Working with a bootloader I started thinking about checksumming an entire application, to ensure the full program is downloaded into the the target via the bootloader.
Question 1:
Is there a way to automatically generate, and/or add a checksum to the firmware so a check can be made that the S-Record file is intact before committing to erase and reprogram the target.
Follow up:
Every line of an S-Record has a checksum, which is fine.
But, how do you make sure ALL lines of the S-Record file are in the file?
It is an editable file, and a line may have been lost?
Thanks for any and all comments,
Anders J