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