SPD Driver and FCCU BusFault

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

SPD Driver and FCCU BusFault

691 Views
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 Kudos
7 Replies

661 Views
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 Kudos

657 Views
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 Kudos

615 Views
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 Kudos

534 Views
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 Kudos

611 Views
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 Kudos

603 Views
iverson3ya
Contributor III

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

0 Kudos

666 Views
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 Kudos