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.

How to run SPI EDMA case for c6657 device without ISR mode by enabling TCChen only.

/** Used for creating the options entry in the parameter ram */
#define CSL_EDMA3_OPT_MAKE(itcchEn, tcchEn, itcintEn, tcintEn, tcc, tccMode, \
fwid, stat, syncDim, dam, sam) \

void Setup_Edma_Params (Uint32 srcBuf,Uint32 dstBuf)
{
// Parameter Handle Open
// Open all the handles and keep them ready
paramHandle0 = CSL_edma3GetParamHandle(hChannel0,CSL_EDMA3_CHA_30,&EdmaStat);
paramHandle1 = CSL_edma3GetParamHandle(hChannel1,CSL_EDMA3_CHA_31,&EdmaStat);

paramSetup.aCntbCnt = CSL_EDMA3_CNT_MAKE(TEST_ACNT,(TEST_BCNT));
paramSetup.srcDstBidx = CSL_EDMA3_BIDX_MAKE(TEST_ACNT,0 );
paramSetup.srcDstCidx = CSL_EDMA3_CIDX_MAKE(0,0);
paramSetup.cCnt = TEST_CCNT;
paramSetup.option = CSL_EDMA3_OPT_MAKE(FALSE,TRUE,FALSE,FALSE,CSL_EDMA3_CHA_30,CSL_EDMA3_TCC_NORMAL, \
CSL_EDMA3_FIFOWIDTH_NONE,FALSE,CSL_EDMA3_SYNC_A,CSL_EDMA3_ADDRMODE_INCR,CSL_EDMA3_ADDRMODE_INCR);

I am polling on 

CSL_edma3GetHwChannelStatus(hChannel0, CSL_EDMA3_QUERY_CHANNEL_STATUS, &status)

But status never returns TRUE. This event looks never arrived. 

How do we use only polling method for Channel Event EDMA complete status using Channel Event Register? 

Hari

  • Hari,

    Your OPT_MAKE values would be much easier to follow if you put one parameter on a line and include a comment for which parameter it is. I thought most of our examples do that, so I apologize if you started from an example that did not. If you did not start from an example, that would be a good place to start.

    I do not believe you are doing this correctly, but I am not sure I follow what you are trying to do. That is one reason it would be good to start from a working example and get that example to work.

    The terms you use need to be the same as the terms we use in the EDMA3 User Guide. I do not know what a Channel Event Register is, for example.

    Sorry for not being much help, yet.

    Regards,
    RandyP