4.1.12.2.1 DIAG_STACK_MarchC_Minus()

diag_stack_status_t DIAG_STACK_MarchC_Minus (void )

STACK_TEST_MarchC_Minus: This test implements the Periodic Static memory test (H.2.19.6) defined by the IEC 60730 standard. This API implements the March C Minus test on the STACK. 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 11n (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.

March C test algorithm is executed in below 7 steps:

Step-1: Ascending(w0)

Step-2: Ascending(r0, w1)

Step-3: Ascending(r1, w0)

Step-4: Descending(r0, w1)

Step-5: Descending(r1, w0)

Step-6: Ascending(r0)

Parameters:
in bufferAddress

- pointer to location in memory where array will be stored during test

Returns:

STACK_OK - Success, STACK_ERROR - Failure