Scheck AHB Test - Fault Injection and detection

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

Scheck AHB Test - Fault Injection and detection

770 次查看
Irshad2225
Contributor III

Hi,

Currently, Executing shutdown scheck AhbTest_CM7_0 Test(cm7_0_tcm_ahb
_slice_err_inj_0). 
I have observed that the respective test is injecting a fault at  u32CtrlRegAddr = 0x4007CA28 with mask u32CtrlRegMask = 0x1, but it's failing at
sCheck_DetectAndClearFault. 


I have observed that the status register, u32StatRegAddr = 0x4007CAFC, with mask u32StatRegMask = 0x00200000, doesn't get updated during the test. 

It can refer to the snippet.

 

Scheck_AHB_test.png

 

Q1. Should the status register update the moment the control register is updated with fault injection? 
Q2. any prerequisites that shall be implemented?

Regards,
Irshad




标签 (1)
标记 (4)
0 项奖励
回复
7 回复数

749 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Irshad2225,

Thanks for reaching out to us. Regarding your problem, Can you share the list of errors you are passing in the first argument of sCheck_AhbTest_CM7? This is, sCheck_ErrorContainerType * pErrorContainer, I ask this, because as per your post, you expect the bit 0x0002_0000 (bit 17), which is a read only bit (with write-1-clear config) in the Cortex-M7 AXI Parity Error and AHBP Gasket Error Alarm (CM7_AXI_AHBP_GASKET_ERROR_ALARM) register:

alejandro_e_1-1755036654026.png

 

alejandro_e_0-1755036503530.png

 

Can you confirm if your configuration is valid? 

One other thing that may help us is testing the same AHB test configuration but instead of performing it during shutdown, run it during boot or normal operation, in the past I have seen some test fail only during shutdown, please test that setup and let me know if you see the same behavior. 

 

As a side note, this are the prerequisites for the AHB CM7 test:

alejandro_e_2-1755036740287.png

 

Please check if they are met in your setup.

 

 

Thanks in advance

 

 

 

0 项奖励
回复

528 次查看
Irshad2225
Contributor III
pErrorContainer is {
0x0,
0x0,
0x0,
0x0,
0x0,
0x0,
0x00,
0x0,
0x0,
0x0,
0x0,
0x0,
0x0,
0x0}

0 项奖励
回复

486 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Irshad2225 

Thanks for the information. However, I still don't fully understand your request, After reviweing the code I don't see why are you expecting the register at 0x4007CAFC (CM7_AXI_AHBP_GASKET_ERROR_ALARM) to set its 17th bit:

alejandro_e_0-1757111051841.png

that part of the register is write-1-clear, therefore, "writing 1" to the register, it will be cleared.

 

Which is the behavior your are seeing correct?

 

Let me know if I am understanding your explanation correctly.

0 项奖励
回复

247 次查看
Irshad2225
Contributor III
Hi,

As sCheck_DetectAndClearFault API is checking for the fault handler activation in u32StatRegAddr = 0x4007CAFC, with mask u32StatRegMask = 0x00200000 and it's getting failed.

Wanted to know what might have caused the issue.
One more question, is there any suggested place where scheck_shutdown tests can be performed in the SHUTDOWN sequence?, Currently, I have kept in EcuM_OnGoOffOne().
0 项奖励
回复

169 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Irshad2225

Sorry for the very late reply. Regarding your last question, I'm assuming you refer to function sCheck_ExecuteShutdownTests, checking the manual for that particular API function, I don't see any special place in which to put the function:

alejandro_e_0-1758315551228.png

It only needs to be called before shutting down or going to sleep mode.

 

 

 

 

0 项奖励
回复

640 次查看
Irshad2225
Contributor III
Hi,
I have performed AHB test at the startup test, observed the same thing, the control register getting updated and not the status register.
0 项奖励
回复

623 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Irshad2225,

Can you confirm the information I requested in my last reply?

 

Thanks in advance 

0 项奖励
回复