CFSR (Configurable Fault Status Register)

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

CFSR (Configurable Fault Status Register)

1,472 Views
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 Kudos
Reply
1 Reply

1,449 Views
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 Kudos
Reply