I am trying to use the Mcbsp_Edma_example sample code from the EVMC6474_V1\csl_C6474\examples\mcbsp\mcbsp_edma directory, but need to port it to a DSP/BIOS environment.
The code as it stands works. I am having difficulties porting it to a DSP/BIOS wrapper.
The area that I think I am having problems with are with the interrupt enabling aspects.
I have commented out all INTC related parts of the code, and am now trying to determine what the DSP/BIOS replacements should be, but am not managing to make much progress.
I have been looking in SPRUG11.pdf, SPRUG17.pdf, SPRS552.pdf and also SPRA491a.pdf, but am making no progress.
The sample code, appears to have about 3 areas where changes are needed, all to do with the interrupt initialisation and event mapping.
====
The first section at about line 158, defines various structures used by the other sections.
====
Section 2 at about line 316:
intcContext.eventhandlerRecord = EventHandler;
intcContext.numEvtEntries = 10;
CSL_intcGlobalNmiEnable();
intStat = CSL_intcGlobalEnable(&state);
vectId = CSL_INTC_VECTID_4;
hIntcEdma = CSL_intcOpen(&intcObjEdma, CSL_INTC_EVENTID_EDMA3CC_INT0, &vectId, &status);
====
Section 3 at about line 440:
EventRecordTx.handler = &eventEdmaHandler;
EventRecordTx.arg = (void*)(hModule);
CSL_intcPlugEventHandler(hIntcEdmaTx, &EventRecordTx);
CSL_intcHwControl(hIntcEdmaTx, CSL_INTC_CMD_EVTENABLE, NULL);
====
Any pointers or additional documentation links would be helpful. Or an example which uses DSP/BIOS with EDMA+McBSP.
My final goal is to use McBSP+EDMA to transfer a boot image from DSP memory to an FPGA connected to the McBSP port.