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.

C6678 IPC例程的一个问题



windows CCS5.1的软件仿真环境(C6678 function sim...)下运行在资源汇总贴下载的IPC程序,发现core能运行起来,core0也向core1发出了中断,

但是core1没有收到中断。

看另外的帖子,是说可能是core起来的时间不一样,导致core0产生中断的时候core还没有准备好。

所以,我就先跑的core1,再跑core0,但是结果还是一样。

是软件仿真环境不能仿IPC么?

------------------

concole里面能看到

core1 start running

core 0 start running

set interrupt from core0 to core1

interrupt info 16

然后就没有然后了

---------------------

void main()
{
uint32_t i;
uint32_t coreID = CSL_chipReadReg (CSL_CHIP_DNUM);

#if 1
if (0 == coreID)
{
printf("Core %d start running...\n", coreID);
Init_PLL(8, 3, 5, 64);

enable_all();
}
else
{
printf("Core %d start running...\n", coreID);
}
#endif

initCPINTC();
intcInit();

registerInterrupt();

CSL_CPINTC_generateSysInterrupt(handle[0], 7);

for (i=0; i<1000; i++)
asm (" NOP 5");

if (0 == coreID)
{

IssueInterruptToNextCore();
}

while(1)
{
asm(" NOP 9");
};
}