Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN
setup is as follows for MibSPI1:
- SBE_EVT_EN, EDAC_MODE, PTESTEN, EDEN enabled in PAR_ECC_CTRL
- ECCDIAG_EN enabled in ECCDIAG_CTRL.
- generate single bit error using code attached.
- getting appropriate error flags set in ECCDIAG_STAT and PAR_ECC_STAT.
- but esmGroup1Notification is called with channel 45 as argument instead of 77 as stated in data sheet, which i have enabled the same in ESM of halcogen. 45 is stated as reserved.
- single bit error is also corrected in MibSPI Tx RAM index 0.
volatile uint32 *ecc_pointer = ((volatile uint32 *)(0xFF0E0000U + 0x400U)); /* only last 8 bits are valid from 0x0 to 0x7U */
*ecc_pointer = (0x59U); /* ECC for data 0xA1, single bit flipped */
uint16 data = mibspiRAM1->tx[0].data; /* read to cause ecc error */