SPD Driver and FCCU BusFault

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPD Driver and FCCU BusFault

1,312件の閲覧回数
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,282件の閲覧回数
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,278件の閲覧回数
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,236件の閲覧回数
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,155件の閲覧回数
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,232件の閲覧回数
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,224件の閲覧回数
iverson3ya
Contributor III

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

0 件の賞賛
返信

1,287件の閲覧回数
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 件の賞賛
返信