SPD Driver and FCCU BusFault

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

SPD Driver and FCCU BusFault

1,309 次查看
iverson3ya
Contributor III

When initializing FCCU, it jumps to the BusFault_Handler. The following is the error location.

iverson3ya_1-1700461317409.png

iverson3ya_0-1700461300635.png

iverson3ya_2-1700461332419.png

Please help me resolve it. Thank you.

0 项奖励
回复
7 回复数

1,279 次查看
iverson3ya
Contributor III

I'm not step debugging FCCU

After execution, the program will automatically abort and jump to BusFault_Handler

It stops at the following code

addr = ERM_SR_ADDR32( au32InstanceBaseAddr[u32i], u8j );

What parts do I still need to check?

I can run normally on SPD 1.0.2 and RTD 2.0.3.

I am currently using SPD 1.0.3 and RTD 3.0.0.

0 项奖励
回复

1,275 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

To find the reason of your bus fault please check the BusFault Status Register and BusFault Address Register. I expect you are writing to protected area. For example FCCU registers which are not unlocked, etc...

 

petervlna_0-1700553854108.png

petervlna_1-1700554109716.png

petervlna_2-1700554213782.png

 

Best regards,

Peter

0 项奖励
回复

1,233 次查看
iverson3ya
Contributor III

iverson3ya_0-1701138222656.png

I'm not sure if I'm checking it correctly, but it seems like all the values inside are 0. I still don't know the reason behind this.

 

0 项奖励
回复

1,152 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

ok, have a look at following thread:

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

especially in this part:

petervlna_0-1701945827101.png

You can do debug step by step and check on which exact store/load instruction the bus fault is triggered.

Have in mind that FCCU in configuration mode has watchdog, so do not step debug that part.

Best regards,

Peter

0 项奖励
回复

1,229 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You are looking at CFSR register.

What is the content of BFSR?

Please refer to my explanation above.

Best regards,

Peter

0 项奖励
回复

1,221 次查看
iverson3ya
Contributor III

The BFAR is 0x00 in the upper image, and I did not observe the BFSR.

0 项奖励
回复

1,284 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Just a quick check.

Are you step debugging FCCU in Config phase?

If yes, FCCU watchdog will abort operation.

Please share more details on the issue.

Best regards,

Peter

0 项奖励
回复