SAF eMCEM and Fault Reaction - S32g3

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

SAF eMCEM and Fault Reaction - S32g3

Jump to solution
2,602 Views
Harish_R
Contributor III

Hi Team,

I have integrated eMCEM module (initialization successful - E_OK) and was trying to check the fault handling through the reaction configured in eMCEM module (R1, R2 and R3).

i have enabled only EMCEM_FCCU_M7_0_SRAM_ECC_UE fault and other things like

1. Recoverable: software recoverable

2. IRQ: Enabled

3. NMI: Enabled

4. Recovery timeout: Enabled.

5. Alarm Handler: UserdefaultalarmHandler

6. No reset reaction

i have injected fault using API eMcem_InjectFault(EMCEM_FCCU_M7_0_SRAM_ECC_UE).

observation: when i try to add breakpoint at UserdefaultalarmHandler/UserdefaultNMIHandler and inject fault it doesn't stop at this breakpoint.

when i try to debug it resets after Inject fault macro is called. in spite of configuring reaction type to NoResetReaction. 

how to verify the fault is handled.? 

if anyone could drop some information regarding this it would be helpfull. Thanks in advance!

BR,

Harish R

 

0 Kudos
Reply
1 Solution
2,481 Views
Harish_R
Contributor III

Hi @chenyin_h,

Yeah, it worked. 

had to configure the ISR in OS. ISR mentioned in UM. and rest everything works fine.

 

Thanks for your time and support!

BR,

Harish R

View solution in original post

0 Kudos
Reply
7 Replies
2,493 Views
chenyin_h
NXP Employee
NXP Employee

Hello,  @Harish_R 

Thanks for your reply.

I mentioned that the alarm interrupt is not enabled, I suggest enabling it and then to check if the breakpoint could be available under your alarm handler.

 

BR

Chenyin

0 Kudos
Reply
2,482 Views
Harish_R
Contributor III

Hi @chenyin_h,

Yeah, it worked. 

had to configure the ISR in OS. ISR mentioned in UM. and rest everything works fine.

 

Thanks for your time and support!

BR,

Harish R

0 Kudos
Reply
2,527 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Harish_R 

Thanks for your reply.

For such R3 faults, it is suggested following the example configuration in eMCEM UM:

chenyin_h_1-1750735441514.png

 

Since it cannot be recovered from the software reactions.

 

BR

Chenyin

0 Kudos
Reply
2,511 Views
Harish_R
Contributor III

Hi @chenyin_h ,

Thanks for your time.!

so configuration vise i have mapped R3 reaction. when i tried to put breakpoint in handler function (both alarm handler and NMI handler). the execution doesn't stop at breakpoint. 

so is there ISR should be configured?

 

BR,
Harish R

 

0 Kudos
Reply
2,543 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Harish_R 

Thanks for your post.

Would you mind sharing the snapshot of your configuration window for the corresponding FCCU fault in EB?

 

BR

Chenyin

0 Kudos
Reply
2,535 Views
Harish_R
Contributor III

Hi @chenyin_h,

Thanks for your time. im attaching the SS here.

Harish_R_0-1750659808219.png

Harish_R_1-1750659864304.png

for time being im only testing for SRAM0_ECC having corresponding config as shown in SS.

 

BR,

Harish R

0 Kudos
Reply
2,581 Views
Joey_z
NXP Employee
NXP Employee

hi,Harish_R

Thank you for contacting us,I will continue to support you for this question.

BR

Joey

0 Kudos
Reply