3.10.1.2 DIAG_SRAM_MarchB
Software Requirement Reference ID : SW_SRAM_MARCH_TEST_01.
This file contains the implementation of the March B test on the SRAM. It is a complete and irredundant test capable of detecting stuck-at faults, addressing faults, transition faults, and coupling faults. This test is of complexity 17n (Where n is the number of bits). Since this test is a destructive test, DIAG_MarchBufferAddress is used to save and restore user memory during the test. This API supports only Bank-wise implementation. This means that the test length should be less than or equal to the end address of a given bank.
diag_sram_status_t DIAG_SRAM_MarchB(
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 |