This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to clear the 1-bit ECC error condition

Hi Ti team,

Trying to generate the 1-bit ECC error condition I wrote the following code. It works for the first time only and the OCCUR increments to 1 and does not count errors any more.

My question is; how to initialize the ECC module such that is count the error in the next execution of the while loop?

main(void)

{

_coreDisableRamEcc_();

/* enable writes to ECC RAM, enable ECC error response */

tcram1REG->RAMCTRL = 0x0005010AU;

/* the first 2-bit error will cause an error response */

tcram1REG->RAMTHRESHOLD = 0x14U;

while (1) {


/* cause a 1-bit ECC error */

_coreDisableRamEcc_();

tcramA1bitError ^= 0x1U;

_coreEnableRamEcc_();

/* read from location with 1-bit ECC error */

ramread1 = tcramA1bit;

}

}

Best regards

Amr Hendy