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 - C2000︎ 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:
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