SLAU131V October 2004 – February 2020
This appendix contains source code in C for a reference implementation of a CRC calculation routine that is compatible with the linker-generated CRC tables (Section C.1). This code is found in the file labeled ref_crc.c.
This appendix also contains source code for a simple example application using linker-generated CRC tables and copy tables Section C.2. The application contains several tasks which share a common run area. Linker-generated copy tables move the tasks from their load addresses to the run address. The application also uses the reference CRC calculation routine to compute CRC values which are compared against the linker-generated values.
This code is for reference only, and no warranty is made as to its suitability for any purpose.