I'm working on a S32K148-EVB. My software uses FreeRTOS and I'm doing SPI with lpspi using DMA.
The MPU is enabled and I'm also doing CAN reception.
Randomly I get HardFault error when high load on CAN (9 CAN frame received every 15ms) bus and SPI (32 bytes every 10ms). I takes from 30s to 5min to trigger the error.
When HardFault occurs, the register status are:
I don't know how to find the root cause for my issue.
What should I check in order to identify the root cause?