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.

problems with edma3init() function in LLD

Hi,everyone

In the 6678 LLD sample,edma3init() returns EDMA3_DRV_HandlehEdma[i] = edma3init(i, &edmaResult);)and I can build the sample successfully.                                                                                                                              But when I add this function to my own project and compile,it tells me edma3init() should return a int or  actually EDMA3_DRV_Result value,and in eariler LLD sample I find the edma3init() does return EDMA3_DRV_Result rather than EDMA3_DRV_Handle and the EDMA configuration code seems a bit different.

I try to find the definition of edma3init() in CCS help content but failed.Since I don't find others have such problem,so I must overlook some important configuration.Could somone please point it out for me?

By the way,without the edma3init() I can build my own project successfully,so I think the lib and LLD is already added to my project.here is a link to my code:http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/235865/826580.aspx#826580.

Thank you very much.

Zhao

  • Zhao,

    You can find the EDMA3 LLD documentation in the folder as follows:

    C:\ti\edma3_lld_02_11_05_02\packages\ti\sdo\edma3\drv\docs

    "EDMA3_Driver_User_Guide" mentions that "edma2init()" is defined as follows:

    /**
    * \brief EDMA3 Initialization
    *
    * This function initializes the EDMA3 Driver for the given EDMA3 controller
    * and opens a EDMA3 driver instance. It internally calls EDMA3_DRV_create() and
    * EDMA3_DRV_open(), in that order.
    *
    * It also registers interrupt handlers for various EDMA3 interrupts like
    * transfer completion or error interrupts.
    *
    * \param edma3Id [IN] EDMA3 Controller Instance Id (Hardware
    * instance id, starting from 0)
    * \param errorCode [IN/OUT] Error code while opening DRV instance
    * \return EDMA3_DRV_Handle: If successfully opened, the API will return the
    * associated driver's instance handle.
    */
    EDMA3_DRV_Handle edma3init (unsigned int edma3Id, EDMA3_DRV_Result *errorCode);

    Please take a look at your own project to see if the latest LLD is included.

    Since you can build the sample project (with EDMA3_DRV_Handle for edma3init) successfully, you can compare the "build properties" of your own project with the EDMA3 LLD sample project to see if any difference.