Bus fault investigate

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

Bus fault investigate

ソリューションへジャンプ
687件の閲覧回数
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 解決策
654件の閲覧回数
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 返答(返信)
655件の閲覧回数
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 件の賞賛
返信
653件の閲覧回数
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 件の賞賛
返信
650件の閲覧回数
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 件の賞賛
返信
685件の閲覧回数
linton
Contributor II

the photo is not clear before, please see this:

linton_0-1718241498682.png

 

タグ(1)
0 件の賞賛
返信