SAF eMCEM and Fault Reaction - S32g3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SAF eMCEM and Fault Reaction - S32g3

跳至解决方案
2,664 次查看
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 项奖励
回复
1 解答
2,543 次查看
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 项奖励
回复
7 回复数
2,555 次查看
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 项奖励
回复
2,544 次查看
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 项奖励
回复
2,589 次查看
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.pngchenyin_h_1-1750735441514.png

 

Since it cannot be recovered from the software reactions.

 

BR

Chenyin

0 项奖励
回复
2,573 次查看
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 项奖励
回复
2,605 次查看
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 项奖励
回复
2,597 次查看
Harish_R
Contributor III

Hi @chenyin_h,

Thanks for your time. im attaching the SS here.

Harish_R_0-1750659808219.pngHarish_R_0-1750659808219.png

Harish_R_1-1750659864304.pngHarish_R_1-1750659864304.png

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

 

BR,

Harish R

0 项奖励
回复
2,643 次查看
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 项奖励
回复