Reference CRC Calculation Routine

To run a stand-alone test of the reference implementation of CRC computation, follow these steps:

  1. Create a CCS project with an empty main.c file.
  2. Copy the contents of example_c1.c (Example 1) to the main.c file.
  3. Create a crc_tbl.h file in the project, and copy the contents of Example 29 to that file.
  4. Build and test the project. You should see the following printf() statement results:
  5. CRC_32_PRIME: 74b85ade CRC_8_PRIME: 10 CRC16_802_15_4: b83d