Hi David,
I had try to modify the 'Example MPC5777C-1b+2b_RAM_ECC_error_injection GHS614' to inject 2b RAM ECC in MPC5744P.There is some different betwen MPC5777C EIM and MPC5744P EIM.But I didn't succeed.
The code as below:
static vuint32_t test[2] __attribute__ ((aligned (8))) =
{
0xBABADEDA,
0xABBAABBA
};
void Generate_noncorrectable_ECC_error(void)
{
register vuint32_t test_read = 0;
/* invert 2 LSB bits to create non-correctable data error */
EIM.EICHD_Word1.R = 0x00000003;
/* PRAMC_0 channel error injection enable */
EIM.EICHEN.R = 0x80000000;
/* global error injection enable */
EIM.EIMCR.R = 1;
/* error caused by read (it should set MCSR[MAV, LD, BUS_DRERR]) */
test_read = test[0];
}