I have the following things to clarify.
1. I followed the following way to synchronize each cpu's own timer0 interrupt come at same time. To achieve this, I understood that I should make the two timers should start at same time but the below one I followed which doesn't make those timers synchronized. Is there anything else that should I follow? or If there is another way kindly give me suggestion.
2. Does This kind of synchronization only synchronize IPC interrupts of both CPU or It synchronizes the operation of CPU1 and CPU2?
CPU 1 :
void main()
{
while (IpcRegs.IPCSTS.bit.IPC17 == 0);
IpcRegs.IPCACK.bit.IPC17 = 1;
CpuTimer0Regs.TCR.bit.TSS = 0; // I am making timer0 to start as soon as giving acknowledgement to CPU2
asm(" CLRC INTM, DBGM"); // Then I am enabling necessary interrupts
}
CPU 2 :
void main()
{
IpcRegs.IPCSET.bit.IPC17 = 1;
CpuTimer0Regs.TCR.bit.TSS = 0; // CPU2 timer0 enabling as soon as starting cpu1
}