CRC_SECT=B_0x0, CRC_BURST=B_0x0
FLASH CRC control register
CRC_SECT | CRC sector number CRC_SECT is used to select one user Flash sectors to be added to the list of sectors on which the CRC is calculated. The CRC can be computed either between two addresses (using registers FLASH_CRCSADDR and FLASH_CRCEADDR) or on a list of sectors using this register. If this latter option is selected, it is possible to add a sector to the list of sectors by programming the sector number in CRC_SECT and then setting ADD_SECT bit. The list of sectors can be erased either by setting CLEAN_SECT bit or by disabling the CRC computation. … 0 (B_0x0): sector 0 for CRC 1 (B_0x1): sector 1 for CRC |
CRC_BY_SECT | CRC sector mode select bit When this bit is set the CRC calculation is performed at sector level, on the sectors present in the list of sectors. To add a sector to this list, use ADD_SECT and CRC_SECT bits. To clean the list, use CLEAN_SECT bit. When CRC_BY_SECT is cleared the CRC calculation is performed on all addresses defined between start and end addresses defined in FLASH_CRCSADDR and FLASH_CRCEADDR registers. |
ADD_SECT | CRC sector select bit When this bit is set the sector whose number is written in CRC_SECT is added to the list of sectors on which the CRC is calculated. |
CLEAN_SECT | CRC sector list clear bit When this bit is set the list of sectors on which the CRC is calculated is cleared. |
START_CRC | CRC start bit START_CRC bit triggers a CRC calculation using the current configuration. No CRC calculation can launched when an option byte change operation is ongoing because all read accesses to embedded Flash memory registers are put on hold until the option byte change operation has completed. This bit is cleared when CRC computation starts. |
CLEAN_CRC | CRC clear bit Setting CLEAN_CRC to 1 clears the current CRC result stored in the FLASH_CRCDATAR register. |
CRC_BURST | CRC burst size CRC_BURST bits set the size of the bursts that are generated by the CRC calculation unit. A Flash word is 128-bit. 0 (B_0x0): every burst has a size of 4 Flash words (64 Bytes) 1 (B_0x1): every burst has a size of 16 Flash words (256 Bytes) 2 (B_0x2): every burst has a size of 64 Flash words (1 Kbytes) 3 (B_0x3): every burst has a size of 256 Flash words (4 Kbytes) |
ALL_SECT | All sectors selection When this bit is set all the sectors in user Flash are added to list of sectors on which the CRC shall be calculated. This bit is cleared when CRC computation starts. |