Introduction

Authors: Irun Walberg, Qubo Hu, Microchip Technology Inc.

Devices in the tinyAVR® 1-series and megaAVR® 0-series feature a Cyclic Redundancy Check (CRC) Memory Scan (CRCSCAN) peripheral, which can be used to detect errors in the target section of the Flash.

This application note will demonstrate how to configure CRCSCAN using Priority mode, and how to precalculate a CRC checksum and add this at the end of Flash. The application note also features a section on bootloader considerations, and an example of post-build commands to be used when combining bootloader and application code.