14.29 diag_sram_checkerboard.c File Reference

This file contains APIs to test SRAM using Checkerboard algorithm.

Includes

  1. stdint.h
  2. stdbool.h
  3. xc.h
  4. diag_sram_checkerboard.h
  5. ../../../diag_common/config/diag_config.h

Functions

Table 14-62. uint8_t checkerbrd_buffer [SRAM_SEC_SIZE]__at (0x800000+CHECKERBOARD_BUFFER_OFFSET)
Parameters
CHECKERBOARD_BUFFER_OFFSET 0x800000+
Returns
uint8_t checkerbrd_buffer [SRAM_SEC_SIZE] checkerboard buffer
Table 14-63. diag_sram_status_tcheckboardTest (register uint8_t *address, register uint8_t size)
Parameters
address register uint8_t *
size register uint8_t
Returns
diag_sram_status_t
Table 14-64. diag_sram_status_tDIAG_SRAM_CheckerBoard (register uint8_t *startAddress, register volatile uint16_t length)
Parameters
startAddress register uint8_t *

- The start address of the memory under test.

length register volatile uint16_t

- Defines the size of the memory under test.

Returns
diag_sram_status_t SRAM_OK, SRAM_ERROR, SRAM_INVALID