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: Interrupt problem

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Dear all,

I'm new to C2000 dsp, now I'm testing some simple example codes and try to modify it by myself. The code I'm writing is just testing Timer0 interrupt. However it look like no interrupt is ever made to the CPU. Could you help me on this ?  Following is the initialization code,

void main(void)
{

InitSysCtrl();
InitGpio(); 

InitCpuTimers();

DINT;


InitPieCtrl();


IER = 0x0000;
IFR = 0x0000;

InitPieVectTable();

EALLOW;
PieVectTable.TIMER0_INT = &ISRtimer0; //
EDIS;

PieCtrlRegs.PIECTRL.bit.ENPIE = 1;
PieCtrlRegs.PIEIER1.bit.INTx7 = 1;

IER |= M_INT1;// enable INT1

EINT;

ConfigCpuTimer(&CpuTimer0, 200, 1000000);
StartCpuTimer0();


for(;;)
{

}

}

I skipped some simple functions and header files, they should have no problem as I tested with other softwares.

Which part am I missing according to the interrupt propagation path?

Thank you in advance

  • Hi Yibo,

    Following is the initialization code,

    Please use the 'Insert-> Code' functionality within the toolbar next time there is code to be inserted. 

    The code I'm writing is just testing Timer0 interrupt

    Can you please try to run the following example found in C2000Ware and let me know if you see the interrupt occur?

    C:\ti\c2000\C2000Ware_version\device_support\f2837xd\examples\cpu1\timed_led_blink\cpu01

    I'm new to C2000 dsp,

    I'd suggest taking a look through C2000 Academy to learn more about our devices and help you get started. 

    Best Regads,

    Marlyn