11.1.3 SRAM_END_ADDR

#define SRAM_END_ADDR (INTERNAL_SRAM_START + SRAM_DATA_REGION_LEN - 1U)

This is a macro used to determine the end address of the SRAM used by the application. The macro should be used to set the stack pointer to the correct address before calling the DIAG_SRAM_MarchC_Minus function in the .init0 section when testing the entire SRAM.