Help! S32K144 EIM register is not setted.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help! S32K144 EIM register is not setted.

891 Views
jkson
Contributor I

I would like to run RAM test by using Error Injection Module in S32K144.

So, I set EIMCR[GEIEN] = 1, EICHEN[EICH0EN] = 1, EICHEN[EICH1EN] = 1 and EICHD0_WORD0[CHKBIT_MASK] = 0x7F.

 

However, when I monitor the Registers, EICHEN[EICH0EN] and EICHEN[EICH1EN] value is not set to 1.

So I can't inject an error to RAM.

(Other registers in EIM are set all well.)

How can I enable the Error injection channel?

--------------------------------------------[My test code]---------------------------------------

/* Enable Error Injection Module & Channel Enable */
EIM->EIMCR |= EIM_EIMCR_GEIEN(1);
EIM->EICHEN |= EIM_EICHEN_EICH0EN(1);
EIM->EICHEN |= EIM_EICHEN_EICH1EN(1);


/* Error Injection */
EIM->EICHDn[0].WORD0 |= EIM_EICHDn_WORD0_CHKBIT_MASK(0x7F);
EIM->EICHDn[1].WORD0 |= EIM_EICHDn_WORD0_CHKBIT_MASK(0x7F);

--------------------------------------------------------------------------------------------------------

Thanks.

--> 2018-07-18

I solve this problem.

I find that after error injection, related channel enable status is cleared.

So, If you want error injection test, 

First, Make Error injection,

Second, Enable the Error injection module and channel.

Then, your ERM can capture the RAM error.

Have a good day!

0 Kudos
2 Replies

651 Views
Catosh
Contributor IV

Hi! Some issues here: 

I don't get why you are inverting ALL bits of the data when the RM states that: 
pastedImage_1.png

and according to the manual, 

pastedImage_2.png

B.R.

0 Kudos

651 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Jk,

Thank you for your update in this thread. It will be useful for other customers.

Best regards,

Diana

0 Kudos