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.

RTOS/TDA2PXEVM: EDMA3 alloc problem for eMMC of TDA2Px RTOS

Part Number: TDA2PXEVM

Tool/software: TI-RTOS

Hi,

There are some problems in EDMA3_DRV_requestChannel(),
the err return is EDMA3_DRV_E_DMA_CHANNEL_UNAVAIL (/** The requested DMA Channel not available */)

As the result of EDMA3_DRV_requestChannel() err, err log at vision_sdk/links_fw/src/rtos/utils_common/src/file_api_dma (v3.4) is[IPU1-0]     67.171475 s:  Assertion @ Line: 101 in file_api_dma.c: edma3Result==EDMA3_DRV_SOK : failed !!!

For more details, the err point is at EDMA3_RM_allocResource() in ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/rm/src/edma3resmgr.c

if dma ch is 47,
  rmInstance->initParam.rmInstInitConfig->ownDmaChannels[resId/32U] = 0xffff_0000
  resIdSet = 0x0000_8000
  (rmInstance->initParam.rmInstInitConfig->ownDmaChannels[resId/32U])  &  resIdSet  = 0 ==> it returns err of EDMA3_RM_E_RES_NOT_OWNED


Regards,
HJ Kim

P.S.
It's for eMMC driver, MMC2_INST is used instead of MMC1_INST (SD), and EDMA channels of 46 (TX) and 47 (RX) are used for it.
eMMC booting is working after some modification of SBL code as your reference,
PROCESSOR_SDK_VISION_03_06_00_00\ti_components\drivers\pdk_01_10_02_07\packages\ti\csl\example\mmcsd\mmc_raw_access\main.c