This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: Get FaultISR in hard fault?

Part Number: TM4C1294NCPDT


Hi 

I get FaultISR and the registers are below:

May I know how to debug it in further??

I just connect a spi G sensor and shake it to have interrupt...let MCU know the data is ready. Then get data write into memory ring buffer.

My repoduce step is just shake g sensor quickly...

  • HI Archi,

      I can think of two possibilities for the fault. First, you may not have enough stack. Looking at your LR register, it is at 0xFFFFFFE9. This is an invalid memory region.  Increase your stack to larger value should resolve the issue. I don't know how big is your ring buffer. Normally another cause of the fault is because a peripheral is accessed before it is enabled. Make sure before you try to read/write to a peripheral register, the peripheral is first enabled. I will suggest you put a breakpoint at your interrupt ISR and single step to find the cause. This app note shows how to diagnose faults. 

    https://www.ti.com/lit/pdf/spma043