Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Example2 for CRC driver on XMEGA-A3BU Xplained Documentation

Introduction

This simple example shows how to use the CRC module driver on FLASH memory.

Main Files

Device Info

All AVR XMEGA AU devices with a CRC module can be used. This example have been tested with the following setup:

  • XMEGA-A3BU Xplained

Description of the example

The example will setup the CRC module and generate CRC-32 for a range of flash memory, then read the range of flash memory, append the calculated checksum and use the I/O interface to calculate the checksum again to make sure it is zero. The example will then generate CRC for the boot section and the application section and compare the checksum values with the checksums for the same sections generated by flash range CRC. For each successful CRC comparison, a message will be written to the screen.

Dependencies

This example depends on the following modules:

Compilation info

This software was written for the GNU GCC. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.