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 ?
Hi @xiabin,
What kind of exception is it? Bus fault, Usage fault?
What do you read in CFSR?
Can you share the project so that I can test it?
BR, Daniel
Sorry, I can't upload my project.
the CFSR = 0x00000100,
I have three boards, only one has this problem, I replaced the crystal oscillator, the probability of failure decreased, but still there.
Hi @xiabin.
So it is IBUSERR.
Since it is detected after fetching the vector table, can you please double check the vectors?
BR, Daniel