3.12.1.2 DIAG_SRAM_MarchC_Minus
Software Requirement Reference ID : SW_SRAM_MARCH_TEST_01.
This API implements the March C test on the SRAM. It is a complete and irredundant test capable of detecting stuck-at faults, addressing faults, transition faults, and coupling faults. Since this test is a destructive test, DIAG_MarchBufferAddress is used to save and restore user memory during the test.
diag_sram_status_t DIAG_SRAM_MarchC_Minus(
uint16_t startAddress, uint8_t length, uint16_t bufferAddress
)
Parameters
[in] startAddress |
uint16_t
- pointer to an array declared in user memory for test |
[in] length |
uint8_t
- number of bytes to test |
[in] bufferAddress |
uint16_t
- pointer to location in memory where array will be stored during test |
Returns
diag_sram_status_t | SRAM_OK= 0 - Success, SRAM_ERROR= 1 - Failure, SRAM_GLOBAL_ERROR= 2 - Failure at test variables, SRAM_ADDR_ERROR= 3 - Invalid address, SRAM_LENGTH_ERROR= 4 - Invalid length |