1.4 CRCCU Compute CRC32

This example demonstrates how to use the CRCCU module to calculate 32 bit CRC value of a data block.

Description

This application uses CRCCU to compute the CRC value of a predefined data block. Once the computation is done, it compares the output with precomputed CRC value for the same data block. If the comparison is successful, application will light up an LED.

Downloading and Building the Application

To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.

Path of the application within the repository is apps/crccu/crccu_crc32_generate/firmware.

To build the application, refer to the following table and open the project using its IDE.

Project NameDescription
sam_g55_xpro.XMPLABX project for SAM G55 Xplained Pro Evaluation Kit

Setting Up the Hardware

The following table shows the target hardware for the application projects.

Project NameDescription
sam_g55_xpro.XSAM G55 Xplained Pro Evaluation Kit

Setting Up SAM G55 Xplained Pro Evaluation Kit

  • Connect the Debug USB port on the board to the computer using a micro USB cable

Running the Application

  1. Build and program the application project using its IDE
  2. The LED indicates the success or failure:
    • The LED is turned ON when the hardware CRC value matched with the software calculated CRC value
    • The LED is turned OFF when the hardware CRC value did not match with the software calculated CRC value
The following table provides the LED name: