CFSR (Configurable Fault Status Register)

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

CFSR (Configurable Fault Status Register)

1,467 次查看
Shruthi_C
Contributor III

HI,

I m getting CFSR register UNALIGNED error in S32K146 Microcontroller

Can someone please help me on this issue, which scenario we will get this hard fault error

Shruthi_C_0-1686577897840.png

 

Thank You

0 项奖励
回复
1 回复

1,444 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Shruthi_C,

Can you please find the fault instruction?

Add this handler

void HardFault_Handler(void)
{
  while(1)
  {
  }
}

Once it is captured there, you should see the address of the fault instruction on the stack.

You can refer to this document:

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

 

The example triggers this fault:

uint32_t read = *((uint32_t*)0x0007FFFA);
uint32_t read = *((uint32_t*)0x20000021);

 

Regards,

Daniel

0 项奖励
回复