This example demonstrates the Cyclic Redundancy Check Calculation Unit (CRCCU) provided on SAM series microcontrollers. It shows how to use CRCCU to compute CRC on a memory area.
This package can be used with SAM4L series.
The example work as: a. Initialize a buffer in SRAM with random data; Initialize a buffer in Flash with the same data as in SRAM. b. Initialize the CRCCU to compute the CRC of the buffer in SRAM with one of the 3 CRC algorithms. c. Start the computation. d. Read the result and display it. e. Calculate and display the CRC result in Flash and compare it with the result in SRAM . f. Redo b, c, d, e with 2 other CRC modes.
This software was written for the GNU GCC and IAR EWARM. Other compilers may or may not work.