7.2.2 DIAG_FLASH_ValidateCRC16

This API validates the CRC of a given FLASH memory region by re-calculating and comparing it with reference CRC stored by DIAG_FLASH_CalculateStoreCRC16.

diag_crc_status_t DIAG_FLASH_ValidateCRC16(
    uint32_t startAddress,    uint32_t length,    uint32_t refAddress
)

Parameters

[in] startAddress

uint32_t

- starting address of FLASH memory region to be considered for CRC

[in] length

uint32_t

- number of bytes from startAddress to be considered for CRC

[in] refAddress

uint32_t

- the FLASH address where reference CRC is available

Returns