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.

TMS320F28P659DK-Q1: How to trigger a ITRAP

Expert 2120 points
Part Number: TMS320F28P659DK-Q1

Tool/software:

Hello TI expert,

    I want to trigger a ITRAP, and use the below method in the main loop.

Define a pointer and point to a illegal address, then write and read the value of it.

But I did not enter into any interrupt.

Is something wrong with my method?

volatile uint32_t *TestOverRangePoint = (uint32_t *)0xFFFFFFFF;
volatile uint32_t TestData = 0;

for (;;)
{
*TestOverRangePoint = 0x01;
TestData = *TestOverRangePoint;

}

Another question is that I want to write the handler for ITRAP.

Does TI provide the example that how to record  the return address value on the stack in the ITRAP handler?