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 is not working properly with codec engine

Hello I am using DM6467  and codec engine version 2.10.02.

My application is video analytics.

In the code, I am running the video analytics algorithm and copy the input frame buff into output frame buff with memcpy function. The code is work fine.

When I use EDMA3 to copy input frame buff into output frame buff instead of memcpy function then code is not working. It is stuck in between. But if I use only the EDAM3  to copy input frame into output frame without running algorithm (only loopback with EDAM3) then its work fine.

some times its work for some n number of frames and then stuck( some times work up to 300, 400 number of frames).

I dont know why this happen.

Can anyone help me? What is the problem and how to debug the code.

Regards,

Naresh

  • Hello

    Please anybody help me. My progress is stuck over here. 

    many thanks in advance.

    Regards,

    Naresh

     

     

     

     

     

  • This could be several things.  Can you provide more context?

    Is the memcpy (that works) and the EDMA3 copy outside the alg (that works) and the EDMA3 copy inside the alg (that fails) all on the DSP side?  (If so, we might move this to the BIOS forum as that's where the DSP-side experts are.)

    Within the algorithm, are you using any XDAIS interfaces to acquire the EDMA3 resources (e.g. IDMA3 or IRES_EDMA3CHAN)?

    Regardless of how you acquire the resources, are you using a framework-provided library to perform the transfer (e.g. ACPY3)?

    Chris

  • Thanks Chris for your prompt response.

    Yes memcpy (that works) and the EDMA3 copy inside the video analytics algorithm and all in the DSP side.

    Yes I am using IDMA3.

    Yes I am using framework provided library (e.g. ACPY3 start, configure and wait etc..)

    How to move in BIOS forum.

    Shell I ask the query in BIOS forum?

    Regards,

    Naresh