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.

TMS320F28377D: DefaultISR

Part Number: TMS320F28377D


Hi, thanks in advance.

When I run my program, (debug as - code composer debug session), the program will automatically stop at a sentence in the DefaultISR.c document. 

interrupt void ILLEGAL_ISR(void)
{

asm (" ESTOP0");
for(;;);

}

sometimes I click the restart button, it will back to normal, but most of the time, the program will stop. 

Could somebody give me instructions on this? 

Many Thanks

kexin

  • Hello

    This means that there is some serious bug in your program, which causes exception.

    For example, there can be an enabled interrupt from some peripheral, but no function to service it - in this case "Default ISR" is used as an ISR for triggered interrupt.

    Or maybe there is some ITRAP/Hardware fault, that causes an NMI and again, Default ISR is used to service it.

    But as per your description (program works fine for some time and then breaks) I suggest you have some troubles with stack. I had such problem once. I suggest you to examine your stack pointer (SP) in "Registers" view, when the program hits this default isr.

  • Kexin,

    Disona has some good suggestions.  You can also inspect the PIEACK and PIEIFRn registers to see which hardware interrupt is triggered.

    -Tommy

  • many thanks for your feedback. I will try this right now.