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.

Issue in code with the ISR Function

We are developing a application to the TMS570 controller using CCS compiler.

In application we are using timer interrupt.In that Timer ISR we are doing some functionality.

when I free run the code with the debugger and after if i stop the running code  hangs at the Timer ISR.

from that point if I do step by step and if i free run the code after ISR return  then its working normally.

What is the issue with Timer ISR in that above situation??

Please help..

Regards,

Shilpa

 

  • Silpa,

    It is mostly likely caused by your ISR software. Check if there is a interrupt overrun condition. You can check it by removing your processing from ISR. The interrupts are disabled when you do single stepping. Assume that you use RTI. You need to do the following in ISR.

        ptr->RTIINTFLAG_UN.RTIINTFLAG_UL = 1<<type; //clear RTI interrupt flag
        a = ptr->RTIINTFLAG_UN.RTIINTFLAG_UL;  // read the flag back so that the flag is clear before ISR exits

    Thanks and regards,

    Zhaohong