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.

AWR1642: 1DFFT OUT EDMA

Part Number: AWR1642

Hi

mmw_ODS_demo uses following code to transfer data from FFTout1D to radar cube:

    EDMAutil_configType2a(context->edmaHandle[MMW_DATA_PATH_EDMA_INSTANCE],
        (uint8_t *)(SOC_translateAddress((uint32_t)(&obj->fftOut1D[0]),SOC_TranslateAddr_Dir_TO_EDMA,NULL)),
        (uint8_t *)(&obj->radarCube[0]),
        MMW_EDMA_CH_1D_OUT_PING,
        false,
        shadowParam++,
        BYTES_PER_SAMP_1D,
        obj->numRangeBins,
        obj->numTxAntennas,
        obj->numRxAntennas,
        obj->numDopplerBins,
        eventQueue,
        NULL,
        (uintptr_t) obj);


 retVal =
    EDMAutil_configType2a(context->edmaHandle[MMW_DATA_PATH_EDMA_INSTANCE],
        (uint8_t *)(SOC_translateAddress((uint32_t)(&obj->fftOut1D[obj->numRxAntennas * obj->numRangeBins]),
                                         SOC_TranslateAddr_Dir_TO_EDMA,NULL)),
        (uint8_t *)(&obj->radarCube[0]),
        MMW_EDMA_CH_1D_OUT_PONG,
        false,
        shadowParam++,
        BYTES_PER_SAMP_1D,
        obj->numRangeBins,
        obj->numTxAntennas,
        obj->numRxAntennas,
        obj->numDopplerBins,
        eventQueue,
        NULL,
        (uintptr_t) obj);

This transfer changed in mmwave_automotive_toolbox_2_4_3, in version 2_4_2 it was similar to mmw_demo. In this new code the destination address for both ping and pong are the same "radarCube[0]", so every time pong transfers, it overwrites ping. I changed the pong destination address to  (uint8_t *)(&obj->radarCube[obj->numRxAntennas * obj->numDopplerBins]) and it works, too. But I'm not sure, is it correct?. In this code we allocated some space for pong transfers in radar cube that are unused. Could you correct me if this isn't true or explain more about this process. It would be great if you could provide me a picture like what is in mmw_demo docs.

best regards