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.

EDMA3 Driver error

Other Parts Discussed in Thread: OMAP-L137

Hi,

I'm working on EVM of OMAP-L137 and try to use EDMA3 to move data from EMIFA to EMIFB. This is my initializzatio code written with EDMA3 Driver User Guide:

 

    INT32U edma3InstanceId = 0;

    EDMA3_DRV_InitConfig initCfg;

    EDMA3_DRV_Result errorReturn;

    EDMA3_OS_SemAttrs semAttrs = {EDMA3_OS_SEMTYPE_FIFO, NULL};


    result = EDMA3_DRV_create (edma3InstanceId, NULL, NULL);
   
    initCfg.isMaster = TRUE; // Single-CPU processor, choose TRUE
    initCfg.regionId = 1; // Pick 1, unless you use mem protection
    initCfg.drvSemHandle = NULL;// Pass BIOS semaphore to LLD
    initCfg.drvInstInitConfig = instanceConfig; // Device-specific configuration extern’d above

    result = edma3OsSemCreate(1, &semAttrs, &initCfg.drvSemHandle);

    hEdma = EDMA3_DRV_open (edma3InstanceId, (void *) &initCfg, &errorReturn);

 

From edma3OsSemCreate I received error -143 (EDMA3_DRV_E_SEMAPHORE). Can anyone tell me wy?

Thanks!

Alessandro.