SPRU513Z August 2001 – October 2023 SM320F28335-EP
The linker supports extensions to the linker command file syntax to enable the verification of code or data by means of Cyclic Redundancy Check (CRC). The linker computes a CRC value for the specified region at link time, and stores that value in target memory so that it is accessible at boot or run time. The application code can then compute the CRC for that region and ensure that the value matches the linker-computed value.
In a linker command file, you can cause CRC values to be generated for the following:
The run-time-support library does not supply a routine to calculate CRC values at boot or run time, however a limited reference implementation in C is provided in Section C.2. Examples that perform cyclic redundancy checking using linker-generated CRC tables are provided in the Tools Insider blog in TI's E2E community.