I am using the STKa117xL board by TQ that integrates IMX. RT1170 Processor family. I want to enable Hamming Error Correction (ECC) on the OCRAM1 and OCRAM2. The processor reference manual shows that it is a straightforward process, i.e.
1. Set PIPE_ECC_EN[ECC_EN] bit = 1 for MECC1 and MECC2.
2. Set ERR_STAT_EN = 1, and ERR_SIG_EN = 1 to enable interrupts.
3. Initialize OCRAM1 and OCRAM2 with 0x0 or 0xff using 64-bit writes.
I followed all the above steps and then I tested it using error injection if it is working and I am getting no interrupts or even status updates in the status register.
This is what I am doing for testing:
1. Inject single or multi-bit error in OCRAM2 bank 0.
2. Read first 256 bytes on OCRAM2 and rewrite the same value.
3. Read first 256 bytes again (I expect ECC module to give an error here)
I have attached the extracted section from RT1170 reference manual for ECC initialization.