Bus fault investigate

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

Bus fault investigate

跳至解决方案
631 次查看
linton
Contributor II

Hi NXP team,

now I encounter a problem about Bus fault as below, I use the S32K148 MCU.

linton_0-1718241235058.png

how can I find this Bus fault address so that I go on investigate the root cause.

标记 (1)
0 项奖励
回复
1 解答
598 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
599 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

 

0 项奖励
回复
597 次查看
linton
Contributor II

Hi Daniel,

the possible Bus fault location 0x805FFE55.

Could you give me a hint what does this address(0x805FFE55) means? 

Thanks

标记 (1)
0 项奖励
回复
594 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

 

0 项奖励
回复
629 次查看
linton
Contributor II

the photo is not clear before, please see this:

linton_0-1718241498682.png

 

标记 (1)
0 项奖励
回复