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.

No errors shown but I get "Terminating execution..." ?

Hello,

I'm using tirtos_tivac_2_14_04_31 on a TM4C1294XL. I've seen several different errors before like out of memory, or stack overflow, which I have been able to fix. However, I am currently seeing the following error without any other information:

FSR = 0x0000
HFSR = 0x40000000
DFSR = 0x0000000b
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...

The addresses shown above change. The issue only happens about once every 24 hours and is very unpredictable. I can't figure out how to reliably reproduce it.
I have other debug prompts (either using systemprintf or a uart port) but they don't indicate anything specific is happening when this occurs.

If the debugger is not hooked up, the microcontroller essentially is unrecoverable without a power reset.

I'm asking for help with which RTOS tools I should use or enable to try to debug this issue.
Is there anything in particular this type of error might usually be caused by?

Any help would be much appreciated.

If there is additional information that I can provide to help figure this out, please let me know.

Thank you!

  • If it helps, this is what my view looks like when it crashes:

    I've started to look under the ROV but I'm not sure what to look for.

    Does this point towards a HWI issue possibly?

  • An HWI exception has occurred which can be due stack overflow, no heap or due to illegal instruction execution (due to a bad pointer). But the exception is not printed fully, which I am guessing is because the SysMin buffer size is small. You need to update it to a larger value. To do that, in your application's .cfg file, can you the check SysMin.bufSize value? By default, it will be set to 512 or less. Please increase this value to 1024. The next time you hit the error, you should see the entire exception message.

    Also, you can look into ROV for information that can help debug the issue. In ROV, can you check the Hwi, Task and Heap modules? Check the stack/heap sizes, exception trace.
  • I just tried this earlier today and saw a stack overflow but I was testing several other changes at the same time. I'll need to rerun with my original config file and only adjust the SysMin buffer to confirm it.

    My default SysMin.bufSize was 128 so I will retry and run with 1024. I should be able to reproduce the issue within a day I hope.

    Marking it as answered since it covered my original question. I'll create another thread if I find a more specific issue that I can't debug.

    Thank you very much!

    Just want to say that this forum has helped me quite a lot in the past few months and I really appreciate it.