Other Parts Discussed in Thread: HALCOGEN
Hello Team,
I am using Safe ti Diagnostic library 2.3.1. I am testing the SRAM with Safe ti Diagnostic library API's SL_SelfTest_SRAM.
the following test case is failing
retVal = SL_SelfTest_SRAM(SRAM_ECC_ERROR_FORCING_2BIT, TRUE, &failInfoTCMRAM);
when i debugged i found that sl_esmREG->SR1[2] is always zero. so the below condition is always failing.
if ((((uint32)&sramEccTestBuff[2] & TCRAM_RAMUERRADDR_UNC_ERRADD) == ram1uerraddr)
&& (((uint32)&sramEccTestBuff[3] & TCRAM_RAMUERRADDR_UNC_ERRADD) == (ram2uerraddr)) &&
((uint32)(1u << ESM_G3ERR_B1TCM_ECC_UNCORR) == (sl_esmREG->SR1[2] & (uint32)(1u << ESM_G3ERR_B1TCM_ECC_UNCORR)))&&
((uint32)(1u << ESM_G3ERR_B0TCM_ECC_UNCORR) == (sl_esmREG->SR1[2] & (uint32)(1u << ESM_G3ERR_B0TCM_ECC_UNCORR)))) {
As per my understanding SRAM_ECC_ERROR_FORCING_2BIT cause ESM group3 errors.
Please let me why sl_esmREG->SR1[2] is alwyas zero in my case? where am i doing wrong?
Regards,
Bharat