Hi NXP team,
now I encounter a problem about Bus fault as below, I use the S32K148 MCU.
how can I find this Bus fault address so that I go on investigate the root cause.
解決済! 解決策の投稿を見る。
Hi @linton,
This is a precise bus fault exception.
Probably the program runs away and accesses this unimplemented memory.
Stack overflow can be a possible root cause.
You can find the PC address of the fault instruction on the Stack, follow this document:
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
Regards,
Daniel
Hi @linton,
This is a precise bus fault exception.
Probably the program runs away and accesses this unimplemented memory.
Stack overflow can be a possible root cause.
You can find the PC address of the fault instruction on the Stack, follow this document:
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
Regards,
Daniel
Hi Daniel,
the possible Bus fault location 0x805FFE55.
Could you give me a hint what does this address(0x805FFE55) means?
Thanks
The address 0x805FFE55 is not implemented, any access there is invalid, refer to S32K1xx_Memory_Map.xlsx that is attached to the RM.
Since the bus fault is precise, you can find the program counter address of the instruction that accesses the address on the Stack.
Then, locate the program counter address in the disassembly window, it is probably a Load or Store instruction.
Thanks,
Daniel