Part Number: TDA4VM
Hello TI,
I am trying to use the udma_direct_dru_test.c code to read and write to the PCIe memory, but it fails on the channel opening at the channel allocation function (it returns CSL_EALLOC).
In the example, there are only a few channel parameters that are being set, are there any others that should be set before calling chOpen function?
/* Init channel parameters */
chType = UDMA_CH_TYPE_UTC;
UdmaChPrms_init(&chPrms, chType);
chPrms.utcId = UDMA_UTC_ID_MSMC_DRU0;
/* Ring not used in direct TR submission via DRU */
chPrms.fqRingPrms.ringMem = NULL;
chPrms.cqRingPrms.ringMem = NULL;
chPrms.tdCqRingPrms.ringMem = NULL;
chPrms.fqRingPrms.elemCnt = 0U;
chPrms.cqRingPrms.elemCnt = 0U;
chPrms.tdCqRingPrms.elemCnt = 0U;
/* Open channel for DRU */
retVal = Udma_chOpen(drvHandle, chHandle, chType, &chPrms);
Thank you,
Marina