Figure 3-2 is a calculation example for the CRC32 integrity
check, if the user sets the start address as
0x0001.0000 and the length as eight bytes. The
application data refers to Section 3.1.7.
Select the JAMCRC as the calculation model to get the CRC32 output
value. The JAMCRC CRC model has the reversed
input and output bit, and uses the polynomial of
0x04C11DB7 with an initial value of 0xFFFFFFFF, and
an output XOR value of 0x00000000.
Follow these steps to calculate the example CRC32 value:
- Select the application digest check policy as
check with CRC (SECURE_BOOT_MODE = Abhor).
- Set the 32-bit starting
address of the application digest check
(USER_SECURE_APP_ST ART_ADDR = 0001.0000h).
- Set the length of the application (specified in
bytes) for which the CRC digest check applies
(USER_SECURE_APP_LENGTH = 8h).
- Calculate the CRC32 output with the given
input:
- Reverse the input data
endianness as CRC32 is calculated using an 8-bit
format: 67, 45, 23, 01, EF, CD, AB, 89.
- Combine the input 8-bit
data as one string: 67452301EFCDAB89.
- Calculate the CRC32 value
(select HEX as the input encoding,
JAMCRC as the model): 0x24648719 (CRC32 online tool).
- Register the CRC32 output
value in the BCR configuration
(USER_SECURE_APP_HASH_1 = 2464.8719h). If there
are multiple USER_SECURE_APP_HASH_y registers,
only the first 32-bit word of the DIGEST is used
for CRC32.
Note: Verify that the length of the application CRC32
digest check is an even number.