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.

TMS320F280039C: How to get the reason when chip run into ITRAP

Part Number: TMS320F280039C

Tool/software:

Hi team,

I ask this for my customer.

My customer used Infineon before and they said in Infineon, it can identify the reason of ITRAP and restore the code where code run into ITRAP(not just the a address but the address of a snippet of code)  and code can do some operation according this.

I find the way to get the address where code run into ITRAP: TMS320F280039C: Where is the "ITRAP Exception" logged ? - C2000 microcontrollers forum - C2000Tm︎ microcontrollers - TI E2E support forums

1. It seems we need connect debug but can we just read it in our code?

2. Could we read the flag in register to identify the reason why code run into ITRAP? I find the related description in: 

C28x Interrupt FAQ

3. Do we have any demo to implement how to get the reason of ITRAP and do corresponding operation to it? I just find Stack Overflow Detection demo.

4. What the total reason cause the ITRAP? in below description it isn't include the Stack Overflow;

but later it says Stack Overflow will cause ITRAP

BRs

Shuqing