ModusToolbox Safety Test Library
Loading...
Searching...
No Matches

General Description

Functions

uint8_t SelfTest_FlashCheckSum (uint32_t DoubleWordsToTest)
 This function checks for data corruption in Flash memory using a checksum calculation.
void SelfTest_Flash_init (uint32_t StartAddressOfFlash, uint32_t EndAddressOfFlash, uint64_t flash_ExpectedCheckSum)
 This function checks the checksum of the Flash for the given range of Flash with the expected/reference checksum passed along with this API.

Function Documentation

◆ SelfTest_FlashCheckSum()

uint8_t SelfTest_FlashCheckSum ( uint32_t DoubleWordsToTest)

This function checks for data corruption in Flash memory using a checksum calculation.

Parameters
DoubleWordsToTestNumber of 32-bit Double Words of Flash to be calculated per each function call.
Returns
ERROR_STATUS (1) - Test failed
PASS_STILL_TESTING_STATUS (2) - Test in progress
PASS_COMPLETE_STATUS (3) - Test completed

◆ SelfTest_Flash_init()

void SelfTest_Flash_init ( uint32_t StartAddressOfFlash,
uint32_t EndAddressOfFlash,
uint64_t flash_ExpectedCheckSum )

This function checks the checksum of the Flash for the given range of Flash with the expected/reference checksum passed along with this API.

Parameters
StartAddressOfFlashStart address of the Flash from where the checksum needs to be calculated.
EndAddressOfFlashEnd address of the Flash till where the checksum needs to be calculated.
flash_ExpectedCheckSumExpected checksum. Must be stored outside the range of check.
Note
This function needs to be called prior to SelfTest_FlashCheckSum else the test will fail