7.2.1 DIAG_FLASH_CalculateStoreCRC16
This API calculates 16-bit CRC for a given FLASH memory region and stores the same at FLASH address indicated by storeAddress argument.
diag_crc_status_t DIAG_FLASH_CalculateStoreCRC16(
uint32_t startAddress, uint32_t length, uint32_t storeAddress
)
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] storeAddress |
uint32_t
- the FLASH address where calculated CRC will be stored |
Returns
diag_crc_status_t | CRC_OK= 0, CRC_INVALID_ADDRESS= 2, CRC_INVALID_LENGTH= 3, CRC_STORE_ERROR= 4 |