28.5.2 Control B

The Control B register contains the source settings for the CRC. It is not writable when the CRCSCAN is busy, or when an NMI has been triggered.

Name: CTRLB
Offset: 0x01
Reset: 0x00
Property: -

Bit 76543210 
       SRC[1:0] 
Access R/WR/W 
Reset 00 

Bits 1:0 – SRC[1:0] CRC Source

The SRC bit field selects which section of the Flash will be checked by the CRCSCAN. To set up section sizes, refer to the Fuses section.

The CRCSCAN can be enabled during internal Reset initialization to verify Flash sections before letting the CPU start (see the Fuses section). If the CRCSCAN is enabled during internal Reset initialization, the SRC bit field will read out as FLASH, BOOTAPP, or BOOT when normal code execution starts (depending on the configuration).

ValueNameDescription
0x0 FLASH The CRC is performed on the entire Flash (boot, application code, and application data sections).
0x1 BOOTAPP The CRC is performed on the boot and application code sections of Flash.
0x2 BOOT The CRC is performed on the boot section of Flash.
0x3 - Reserved.