3.2.11.2 DIAG_FLASH_CRCCompare

Returns the status of the FLASH_CRC_COMPARE diagnostic

This function calculates a CRC32 against a memory area. Compare the results against the CRC32 input value.

DIAG_TEST_STATUS 
DIAG_FLASH_CRCCompare
(
    uint32_t start_addr, 
    uint32_t length, 
    uint32_t crc 
);

Diagnostic verifies the following faults do not exist

  • direct-mapped cache does not work correctly.

Operating Mode

  • Interface can be used at POST and ‘On Demand’
Precondition
  • none

Parameters

  • start_addr - Start address of the Flash memory range to compute a CRC32 calculation against
  • length - length of the calculated area
  • crc - CRC32 value to compare against

Returns

  • DIAG_TEST_PASSED if no faults were found, otherwise, DIAG_TEST_FAILED.