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.

EDMA C6748 on separate CC1 TC0 controller

Hello,

As I've seen in \ti\edma3_lld_02_11_05_02\packages\ti\sdo\edma3\rm\src\configs\edma3_c6748_cfg.c file, only CC0 is supported (with TC0, TC1), how can I use CC1 and it's own TC0? Anyone managed to use it or any examples available?

Thank you in advance,

David.

  • Hi David,

    You can refer here ..\edma_lld_package\packages\ti\sdo\edma3\rm\sample\src\platforms\sample_c6748_cfg.c

  • Hi Radhesh,

    I've used edma3init(1) instead of 0, but while GPIO event was working on 0, it doesn't seem to work on instance 1, any idea why?

    I used:

    hEdma = edma3init(1, &result);

    int edmaChId = edmaTcc = 22;//gpio bank interrupt already enabled

    int edmaTC = 0;

     EDMA3_DRV_Instance *drvInst = (EDMA3_DRV_Instance *)hEdma;

    EDMA3_DRV_Object *drvObject = drvInst->pDrvObjectHandle;

    drvObject->gblCfgParams.dmaChannelHwEvtMap[edmaChId/32u] |= (1u<<(edmaChId%32u));

    int32_t retVal = EDMA3_DRV_requestChannel(
    (EDMA3_DRV_Handle)hEdma,
    &edmaChId,
    &edmaTcc,
    (EDMA3_RM_EventQueue)edmaTC,
    &DMAIsr,
    NULL);

    EDMA3_DRV_enableTransfer(hEdma, edmaChId, EDMA3_DRV_TRIG_MODE_EVENT));

    While retVal is 0 for RequestChannel and EnableTransfer, which means driver was initialized, DMAIsr is not triggered and no transfer is happening, but this works fine when edma3init(0).

    Best regards,

    David.

  • Hi David,

    Can you compare the global array "sampleEdma3GblCfgParams" for both EDMA instances in your config file? Do you see any suspicious changes?

  • Hi Radhesh,

    I compared those structures, it seems correctly initialized with the CC1 register addresses. I also tried passing the EDMA handle provided by edma3init(1) to BIOS PSP drivers (I2C, UART, SPI) which work fine if using edma3init(0), and none of them work. Was the EDMA3 code ever tested on CC1?

    Best regards,

    David.