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.

CCS/TMS320C6746: TMS320C6746

Part Number: TMS320C6746

Tool/software: Code Composer Studio

Hi,

I am using TMS320C6746 custom board. I have configured all my timers to generate interrupts.

Timer0--> 125us timer

Timer1-->WatchdogTimer 10ms(No specific interrupt is mapped to it but watchdog is enabled)

Timer2->1ms Timer(this timer starts inside 125us timer)

Timer3--> Two 32 bit timers, lower 32 bit timer is 10ms timer and higher 32 bit timer is 100ms timer

Timer2 has higher priority followed by Timer0, Timer3 lower and Timer3 higher. In my main function I start Timer0 and Timer3 and enter a while(1) loop in which some code is written. 

When I debug my code , I'm entering into while(1) only for the first time and only the code in ISR corresponding to Timer0 interrupt is getting executed and i'm unable to get back to while(1) loop in main() even I put a break point inside while(1) loop(no break statement inside while(1) loop). I'm clearing the IFR corresponding to Timer0 interrupt upon entering Timer0 ISR and enabling only those interrupts which are having higher priority than Timer0 interrupt to pre-empt  and enabling all the interrupts just before exiting the ISR. Now. although the IFR's corresponding to Timer3 timers were raised I'm unable to enter the corresponding ISR's  by putting a break point inside them. When I allow other interrupts to pre-empt the timer0 interrupt by enabling them just after entering timer0's ISR , I am able to enter into other interrupts ISR's but not able to enter into while(1) loop in main(). I don't have any Idea why this is happening. Can someone please help me out. (.far section is in SDRAM and .bss in L2(I'm not sure whether this has anything to do with my problem) ). The CCS version i'm using is v7.3.(The code is not getting stuck in any of the loops in ISR corresponding to Timer0).

Regards,

Vishnu.