I am new to DSP and trying to mapping system interrupt to Host Interrupt on the EVMK2H platform and bios_6_41_04_54。
int32_t eventId;
/* Map the System Interrupt i.e. the Interrupt Destination 0 interrupt to the DIO ISR Handler. */
CpIntc_dispatchPlug(CSL_CIC2_IPC_GR1, (CpIntc_FuncPtr)myCompletionIsr, (UArg)5, TRUE);
/* The configuration is for CPINTC0. We map system interrupt 112 to Host Interrupt 8. */
CpIntc_mapSysIntToHostInt(2, CSL_CIC2_IPC_GR1, 8);
/* Enable the Host Interrupt. */
CpIntc_enableHostInt(2, 8);
/* Enable the System Interrupt */
CpIntc_enableSysInt(2, CSL_CIC2_IPC_GR1);
/* Get the event id associated with the host interrupt. */
eventId = CpIntc_getEventId(8);
/* Plug the CPINTC Dispatcher. */
EventCombiner_dispatchPlug (eventId, CpIntc_dispatch, 8, TRUE);
when run on core0, eventId is 74 and plug OK,when run on other cores eventId is -1 and terminating execution
ti.sysbios.family.c64p.EventCombiner: line 214: assertion failure: A_invalidEventId: Invalid event Id specified
xdc.runtime.Error.raise: terminating execution.
how to set eventId on other cores?