2.1.3.8 CRC32_Validate()

static bl_result_t CRC32_Validate (uint32_t startAddress, uint32_t length, uint32_t crcAddress)[static]

Validates the CRC32 checksum for a specified memory region.

This function checks the CRC32 checksum of a memory block against a stored CRC value to verify data integrity and then returns a value indicating whether the validation was successful or not.

Parameters:
in startAddress

- The starting address of the memory block to validate

in length

- The length of the memory block in bytes

in crcAddress

- The address where the expected CRC32 checksum is stored

Returns:

BL_PASS - Bootloader verified the application image with no errors  

BL_FAIL - Bootloader encountered an error and failed unexpectedly  

BL_ERROR_VERIFICATION_FAIL - Bootloader image verification failed