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.
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...
Best regards,
Peter
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.
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:
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
Hello,
You are looking at CFSR register.
What is the content of BFSR?
Please refer to my explanation above.
Best regards,
Peter
The BFAR is 0x00 in the upper image, and I did not observe the BFSR.
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