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.

Multiple calls to edma3init in an application

Hi !!

I am trying to integrate 2 applications for L137. Each application runs individually but not when integrated together. Both of them call edma3init (this is with edma3_lld_02_00_01_04). Is this allowed ? My guess is that edma3init returns an error the second time it is called.

Regards and Thanks,

Maya Kamath.

  • Maya,

     

    You are correct, this is not allowed.

    edma3init() API returns “EDMA3_DRV_E_INVALID_STATE” if you try to call it again with out calling edma3deinit.

     

    Regards,
    Sundaram

    Note: Please mark this post as “Answered” by clicking the “Verify Answer” button below if you think it answers your question.

  • Sundaram said:

     

    You are correct, this is not allowed.
    edma3init() API returns “EDMA3_DRV_E_INVALID_STATE” if you try to call it again with out calling edma3deinit.

     

    hello Sundaram,

       I have the same problem right now. I want to integrate two application together- audioSample.pjt and mmcsdSample.pjt on C6747EVM DSP/BIOS.  I need EDMA to control communication between memory and McASP and communication between memory and SD card. I think two EDMA handles are needed to fulfill this aim. What should I do? Can it return two EDMA handles when I call edma3init() once? Or I should first initialize one handle by edma3init() then edma3deinit() and consequently initialize another one by edma3init() then edma3deinit() again?

      Wish you could answer my question.

    Bo Li

     

  • Normal 0 false false false MicrosoftInternetExplorer4

    Bo Li,

     

    You can have only one EDMA handle per EDMA controller.

    Hence you must have an application governing both these tasks and it should initialize the EDMA handle and pass it to both these tasks when required.

    Hope this helps.

     

    Regards,

    Sundaram