The Cyclic Redundancy Check or CRC is a technique, which is designed to check the integrity of user-defined memory areas. It helps in calculating the checksum of a binary application file.
Command Syntax
crcgen input -crc file [-vaddr] [-o file] [-srec [file] [length]] [-bin [file] [length]]
CRC SEED = default_or_initial_value_of_checksum FILL = 0xff FROM start_address TO end_address; FROM start_address TO end_address; FROM start_address TO end_address; DEST = destination_address
CRCgen.exe utility computes the single checksum value, CRC-16 (2-byte size) for the bytes that are present in all specified memory ranges (FROM start_address TO end_address) and stores the resulted checksum value in the destination address (DEST = destination_address).
It loads the ELF segment and calculates the checksum value and these values are written as distinct ELF segment.
**Program Segment ** Destination_address: checksum value