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.

TMS320F28377S: code crushes: ILLEGAL_ISR

Part Number: TMS320F28377S

Sometimes while debugging, The code halts in the function:

interrupt void ILLEGAL_ISR(void)

at the line:

asm (" ESTOP0"); on the 

When this happens, there is no information in the call stack that I can use to know what happed.

This dose not happen every time so I am unable to recreate a specific set of conditions that will cause this.

I would greatly appreciate some guidelines on how to debug this and get to the bottom of my issue.

Thanks!

  • Hi, 

    Can you tell which code/example are you running?

    An illegal_ISR() is caused by an illegal opcode, stack overflow, array pointer issue, etc.  To determine what is causing it, you could try setting breakpoints in the code and running to the breakpoint or use the CCS "run-to-line" feature until the illegal_ISR() is entered.  Once you find the general area in the code, you can then single-step to find the exact problem.  While doing this, you should make use of the register and expression windows in CCS.

    Best Regards

    Siddharth