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.

EDMA interrupt configuration



Hi,

We would like to interrupt the DSP after EDMA transfer. The procedure followed is given below.

Used EDMA  instance number 2 and shadow region number 3 and manually created  and opened the driver instance without using the 'sample' library package.  EDMA interrupt configurations are done as follows.

a) CPIntc is used and transfer completion system interrupts (according to the shadow region )

 are mapped to the host interrupts. 

CpIntc_dispatchPlug(ccXferCompInt[edma3Id[tpccRegionUsed], edma3ComplHandlerLoc,edma3Id,TRUE)

CpIntc_mapSysIntToHostInt(0, ccXferCompInt[edma3Id][tpccRegionUsed],
ccXferHostInt[edma3Id][dsp_num]);
CpIntc_enableHostInt(0, ccXferHostInt[edma3Id][dsp_num]);
 eventId = CpIntc_getEventId(ccXferHostInt[edma3Id][dsp_num]);
 EventCombiner_dispatchPlug (eventId,
                                CpIntc_dispatch,
                                ccXferHostInt[edma3Id][dsp_num],
                                TRUE);

b) edma3ComplHandlerLoc :-  In the interrupt  handler checked whether any pending interrupts are there. (pendingIrqs = shadowRegs->TPCC_IPR)

Cleared the pending interrupts and called the callback function used while requesting the channel.

Still the DSP is not interrupted, whether we are missing any configurations?

Thanks and Regards,

Aswathy