3.1.10.2.2 DIAG_SRAM_Checkerboard()
diag_sram_status_t DIAG_SRAM_Checkerboard (uint16_t startAddress, uint8_t length, uint16_t bufferAddress)
The Checkerboard test implements the Periodic Static memory test (H.2.19.6) defined by the IEC 60730 standard.
Saves the contents of the memory locations to be tested in the buffer defined by bufferAddress.
Writes the binary value (length is dependent upon architecture) 101010... to the memory location, ‘N’, and the inverted binary value, 010101..., to the memory location, ‘N+1’, and so on, until the whole memory chunk is filled.
Reads the contents of all the memory locations in the current chunk and verifies its contents. If the values match, the function continues; otherwise it stops and returns an error.
Step 2 and 3 are repeated by writing the inverted pattern to the same locations.
Once a memory chunk is completed the test of the next chunk is started until all of the requested memory area is tested.
|
SRAM_OK - Success, SRAM_ERROR - Failure |