stm32 /stm32h7 /STM32H7A3 /Flash /FLASH_CRCCR1

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as FLASH_CRCCR1

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)CRC_SECT0 (CRC_BY_SECT)CRC_BY_SECT 0 (ADD_SECT)ADD_SECT 0 (CLEAN_SECT)CLEAN_SECT 0 (START_CRC)START_CRC 0 (CLEAN_CRC)CLEAN_CRC 0 (B_0x0)CRC_BURST 0 (ALL_BANK)ALL_BANK

CRC_BURST=B_0x0, CRC_SECT=B_0x0

Description

FLASH CRC control register for bank 1

Fields

CRC_SECT

Bank 1 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_CRCSADD1R and FLASH_CRCEADD1R) 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 to 1 ADD_SECT. The list of sectors can be erased either by setting CLEAN_SECT bit or by disabling the CRC computation. CRC_SECT can be set only when CRC_EN of FLASH_CR register is set to 1. … … … Note: Bank 1 is limited to 16 and 64 sectors on STM32H7B0 and STM32H7AxG devices, respectively.

0 (B_0x0): sector 0 of bank 1 for CRC

1 (B_0x1): sector 1 of bank 1 for CRC

15 (B_0xF): sector 15 of bank 1 for CRC

63 (B_0x3F): sector 63 of bank 1 for CRC

127 (B_0x7F): sector 127 of bank 1 for CRC

CRC_BY_SECT

Bank 1 CRC sector mode select bit When CRC_BY_SECT is set to 1, 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 reset to 0, the CRC calculation is performed on all addresses between CRC_START_ADDR and CRC_END_ADDR.

ADD_SECT

Bank 1 CRC sector select bit Setting ADD_SECT to 1 adds the sector whose number is CRC_SECT to the list of sectors on which the CRC is calculated.

CLEAN_SECT

Bank 1 CRC sector list clear bit Setting CLEAN_SECT to 1 clears the list of sectors on which the CRC is calculated.

START_CRC

Bank 1 CRC start bit START_CRC bit triggers a CRC calculation on bank 1 using the current configuration. No CRC calculation can launched when an option byte change operation is ongoing because all write accesses to embedded Flash memory registers are put on hold until the option byte change operation has completed.

CLEAN_CRC

Bank 1 CRC clear bit Setting CLEAN_CRC to 1 clears the current CRC result stored in the FLASH_CRCDATAR register.

CRC_BURST

Bank 1 CRC burst size CRC_BURST bits set the size of the bursts that are generated by the CRC calculation unit.

0 (B_0x0): every burst has a size of 4 Flash words (128-bit)

1 (B_0x1): every burst has a size of 16 Flash words (128-bit)

2 (B_0x2): every burst has a size of 64 Flash words (128-bit)

3 (B_0x3): every burst has a size of 256 Flash words (128-bit)

ALL_BANK

Bank 1 CRC select bit When ALL_BANK is set to 1, all bank 1 user sectors are added to list of sectors on which the CRC is calculated.

Links

()