Tool/software: TI-RTOS
Hello,
I am using Processor SDK 3.0 .
I want to transfer data to L2SRAM from DDR and vice versa using edma on DSP. For configuring EDMA, I'm referring framecopy link ( frameCopyAlgoLocalDma.c file)
While transferring data from DDR, dst address will be L2SRAM ( that is 0x40800000 ), so I have configured edma as,
-------
#define DSP1_L2SRAM_ADDR 0x40800000
.
.
//configuration for write data to l2sram
pAlgHandle->pParamSet->destAddr = DSP1_L2SRAM_ADDR;
pAlgHandle->pParamSet->srcAddr = (UInt32)inPtr[0];
pAlgHandle->pParamSet->srcBIdx = inPitch[0];
pAlgHandle->pParamSet->destBIdx = inPitch[0];
pAlgHandle->pParamSet->srcCIdx = 0;
pAlgHandle->pParamSet->destCIdx = 0;
pAlgHandle->pParamSet->aCnt = lineSizeInBytes;
pAlgHandle->pParamSet->bCnt = height/NUM_OF_SLICE;
pAlgHandle->pParamSet->cCnt = 1; //no. of frames
pAlgHandle->pParamSet->bCntReload = height/NUM_OF_SLICE;
pAlgHandle->pParamSet->opt = opt;
pAlgHandle->pParamSet->linkAddr = 0xFFFF;
//configuration for write data back to ddr
pAlgHandle->pParamSet->destAddr = (UInt32)outPtr[0];
pAlgHandle->pParamSet->srcAddr = DSP1_L2SRAM_ADDR;
pAlgHandle->pParamSet->srcBIdx = outPitch[0];
pAlgHandle->pParamSet->destBIdx = outPitch[0];
pAlgHandle->pParamSet->srcCIdx = 0;
pAlgHandle->pParamSet->destCIdx = 0;
pAlgHandle->pParamSet->aCnt = lineSizeInBytes;
pAlgHandle->pParamSet->bCnt = height/NUM_OF_SLICE;
pAlgHandle->pParamSet->cCnt = 1;
pAlgHandle->pParamSet->bCntReload = height/NUM_OF_SLICE;
pAlgHandle->pParamSet->opt = opt;
pAlgHandle->pParamSet->linkAddr = 0xFFFF;
---------
Issue is,
There is no transfer happening between DDR and L2SRAM ( no data display on output screen). I don't get any compile time errors also at rum time. I checked statistics, SCI_DSP1_EDMA not consuming not even L2SRAM is used.
What else I need to do to get this working?
What is this >> SCI_DSP1_EDMA ?
Regards,
Kajal