Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello,
i have problems with implement a timer in cpu2. My code runs successfuly in cpu1. Here is the minimal implementation with the standard ti driver functions from C2000Ware:
InitSysCtrl();
InitPieCtrl();
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable();
InitUsrTimer();
with:
void InitUsrTimer()
{
/* Initialiuze Timer 1 - clk in MHz, periode in uSec */
ConfigCpuTimer(&CpuTimer1, 200, USRTIMERPERIOD);
/* CPU timer 1 */
EALLOW;
PieVectTable.TIMER1_INT = &Timer1_interrupt;
EDIS;
StartCpuTimer1();
IER |= M_INT13;
PieCtrlRegs.PIEIER1.bit.INTx13 = 1;
ERTM;
}
When i run the code parallel in cpu1 and cpu2, i see that the timer-counter in cpu1 is running, but in cpu2 it is not.
I have used the both macros for CPU1 and CPU2 in my project settings.
Can anyone help me? Thanks a lot!