Dear sir:
we put example code "blinky_c28" to control system ram( using boot rom ipc method). ex.PC --> can bus -> concerto m3 --> ipc -> control system.
Using MASTER_IPC_MTOC_BRANCH_CALL command branch the code.
The led didn't blinky, but when comment the fucntion "InitPieVectTable()",it work correctly.
it seems that the pie vector table can't be reload.
void main(void) {
volatile unsigned long delay;
InitSysCtrl();
InitGpio(); // Skipped for this example
EALLOW;
GpioG1CtrlRegs.GPCDIR.bit.GPIO70 = 1;
EDIS;
GpioG1DataRegs.GPCDAT.bit.GPIO70 = 1;// turn off LED
// Step 3. Clear all interrupts and initialize PIE vector table:
// Disable CPU interrupts
DINT;
InitPieCtrl();
// Disable CPU interrupts and clear all CPU interrupt flags:
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable(); --> comment it will work correctly.
EINT; // Enable Global interrupt INTM
ERTM; // Enable Global realtime interrupt DBGM
// Step 6. IDLE loop. Just sit and loop forever (optional):
for(;;)
{
//
// Turn on LED
//
GpioG1DataRegs.GPCDAT.bit.GPIO70 = 0;
//
// Delay for a bit.
//
for(delay = 0; delay < 2000000; delay++)
{
}
//
// Turn off LED
//
GpioG1DataRegs.GPCDAT.bit.GPIO70 = 1;
//
// Delay for a bit.
//
for(delay = 0; delay < 2000000; delay++)
{
}
}
}