I use S32K144 MCU. The program runs for a few minute and triggers hardfault.
I USE fualt_exceptions.c/.h to to find the problem. track the PC pointer and stack address of the problem.
stack address is 0x20006f8a,is right。
Track the PC, fault occurs when entering various interrupts(ADC, LPTR, UART etc),The asm is push {r3, lr} as shown in the figure.
What's the reason for this program ?