Hi! I have to include a checksum calculation in the start of my program to verify the firmware integrity. I verifyed that the IAR compiler, in the linker optios, has a tab to fill the unusued bytes and automatically calculate the Checksum (simple, CRC, etc). My question is this: Does some one has a sample code to use this automatic calculation? I mean how to automatically find the __checksum label and the ranges of the calculation that the linker used to calculate the value stored in it? Thnaks in advance for any tip.
Message
Program Checksum and IAR
2006-01-09 by carlosahsilva