Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Program Checksum and IAR

2006-01-09 by carlosahsilva

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.