Tool/software: Code Composer Studio
Hi,
i am trying to test the SRAM at the boot time, so i wrote the following code lines:
#if L2RAMECCCHECK_ENABLE == 1
{
boolean retVal;
SL_SelfTest_Result result;
retVal=SL_SelfTest_SRAM(SRAM_RADECODE_DIAGNOSTICS, TRUE, &result);
if(retVal == FALSE){while(1);} /*Fail to start*/
if(result == ST_FAIL)
{
/*ST Failed*/
while(1);
}
retVal=SL_SelfTest_SRAM(SRAM_ECC_ERROR_FORCING_1BIT, TRUE, &result);
if(retVal == FALSE){while(1);}
if(result == ST_FAIL)
{
/*ST Failed*/
while(1);
}
retVal=SL_SelfTest_SRAM(SRAM_ECC_ERROR_FORCING_2BIT, TRUE, &result);
if(retVal==FALSE){while(1);}
if(result == ST_FAIL)
{
/*ST Failed*/
while(1);
}
}
#endif
now when i debug the application the code lines are working well and there is no problem. But when i run the same application without using the Debugger the SRAM Self Test fails.
Can some body help me on that issue?
Thank you