28.3.2.1 Checksum

The pre-calculated checksum must be present in the last location of the section to be checked. If the BOOT section is to be checked, the checksum must be saved in the last bytes of the BOOT section. The same is done for APPLICATION and the entire Flash. Table 28-1 shows explicitly how the checksum must be stored for the different sections. Refer to the CRCSCAN.CTRLB register description for how to configure the sections to be checked.

Table 28-1. Placement of the Pre-Calculated Checksum for CRC16 in Flash
Section to CheckCHECKSUM[15:8]CHECKSUM[7:0]
BOOTBOOTEND-1BOOTEND
BOOT and APPLICATIONAPPEND-1APPEND
Full FlashFLASHEND-1FLASHEND
Table 28-2. Placement of the Pre-Calculated Checksum for CRC32 in Flash
Section to CheckCHECKSUM[31:24]CHECKSUM[23:16]CHECKSUM[15:8]CHECKSUM[7:0]
BOOTBOOTENDBOOTEND-1BOOTEND-2BOOTEND-3
BOOT and APPLICATIONAPPENDAPPEND-1APPEND-2APPEND-3
Full FlashFLASHENDFLASHEND-1FLASHEND-2FLASHEND-3