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.

TDA2EXEVM: Adding a second input buffer in BAM for EVE (2).

Part Number: TDA2EXEVM

Hello,

I have a problem adding a second buffer to my usecase this is the previous forum discussion i had for reference : e2e.ti.com/.../671780

To verify the that the second buffer is configured well i have made one very simple kernel that tries to pass to the output buffer the second input buffer's value. In the case that i feed it with the first input buffer's value i succeed to get the correct value in the output, but when i try to pass the second buffer's value i get some random value. As a second input buffer i am using a static array and i set the first 4 bytes to a specific value which i expect in the output ( i am using for testing only the first 4 bytes of each buffer not the whole buffer).


Do i have to change all the DMA functions to support the second buffer or is there some simpler way to do this handled by BAM ( i.e besides adding in the <kernel_name>_initArgs an extra call to   assignDMAautoIncrementParams function with the parameters for the second input buffer i have to modify <kernel_name>_dmaControl?


I either have missed some variable in the DMA configuration or i am misunderstanding the way to add the second buffer and i am over complicating it. In the response i would like to see a list of what things you would check in order to solve the problem (some short list would be sufficient). In order to try your proposals and cross out what isn't a problem.


BR ,

Theodore

  • Hi Theodore,
    When you add a new port to the compute node, you will also need to add the connections for it. So the changes should be done in the compute node and the source DMA node. So now your DMA node will have another output port. So you will have to configure source DMA node to populate this buffer and you should update the edgeList to connect this output of DMA node to the second input buffer of the compute node. After this it should work. Let me know if you have done these changes?

    Regards,
    Anshu
  • Hey Anshu,

    I resolved the problem, it turns out i had all the configurations done correctly but the buffer that i was passing was too big (in any case its image frame width was causing problems) i will have to investigate how to modify these dimensions to make it work as i want but at least this issue is resolved. Thanks for your help .

    Regards,
    Theodore