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.
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.
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,