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.

IWR1642: which line in capture demo code (sdk1.1) indicates the trigger to start edma transfer from ADC to CBUFF?

Part Number: IWR1642

hi, 

In capture demo of sdk1.1, which line indicates the trigger to start edma transfer from ADC to CBUFF?

e.g.

in capture_common.c, line 1733~1750, there is EDMA start trigger driven by chirp semaphore.

if( (ptrDmaCfg->currDstAddr + ptrDmaCfg->dmablockSize) < ptrDmaCfg->endDstAddr)
{
retVal = EDMA_setDestinationAddress (ptrDataPathObj->dmaHandle, (uint16_t) ptrDmaCfg->channelId,
SOC_translateAddress(ptrDmaCfg->currDstAddr,SOC_TranslateAddr_Dir_TO_EDMA,NULL));
if(retVal < 0)
{
System_printf("Error: Set EDMA destination address failed with Error[%d]\n", retVal);
}

/* Trigger DMA transfer */
if ((retVal = EDMA_startDmaTransfer(ptrDataPathObj->dmaHandle, ptrDmaCfg->channelId))
!= EDMA_NO_ERROR)
{
System_printf("Error: EDMA_startTransfer() failed with error code = %d\n", retVal);
}
ptrDataPathObj->edmaState = Capture_EDMA_STATE_BUSY;

ptrDmaCfg->currDstAddr += ptrDmaCfg->dmablockSize;