Hi experts,
Neither the Safety manual nor the Technical Reference manual gives detailed instructions on how to test the ECC Logic of the SPI RAM. The SafeTi Lib does not even mention this test.
As far as I can tell, this the way to do the test:
For MibSPI1:
1.Write some value to tx-buffer 1 (Adress = 0xFF0E 0000h)
2. Turn on Testmode ( 0x1 to EDAC_MODE)
3. Flip 1 ECC bit (single-bit error) at Adress 0xFF0E 0000 + 0x400h (normal mode)
4. Disable testmode ( 0x0 to EDAC_MODE)
5 Read from Adress 0xFF0E 0000h
6. Check ESM 1.77 and PAR_ECC_STATT Register for single-bit error
7. Turn on Testmode ( 0x1 to EDAC_MODE)
8. Flip bit again to correct failure
9. Disable testmode ( 0x0 to EDAC_MODE)
11....Do the same for double-bit error, but flip two ECC-Bits and check esm 1.17
(Q1) Is this the correct way to test the ECC Mechanism?
Thank you and best regards,
Max