Bus fault investigate

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

Bus fault investigate

Jump to solution
251 Views
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.

Tags (1)
0 Kudos
Reply
1 Solution
218 Views
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

 

 

View solution in original post

0 Kudos
Reply
4 Replies
219 Views
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 Kudos
Reply
217 Views
linton
Contributor II

Hi Daniel,

the possible Bus fault location 0x805FFE55.

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

Thanks

Tags (1)
0 Kudos
Reply
214 Views
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 Kudos
Reply
249 Views
linton
Contributor II

the photo is not clear before, please see this:

linton_0-1718241498682.png

 

Tags (1)
0 Kudos
Reply