Part Number: AM5728
Tool/software: Linux
Hi Everyone,
Is there any example for DMA data transfer from RAM to RAM in Linux user sapce?
I am using AM57xx EVM.
Regards,
Snehal
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.
Part Number: AM5728
Tool/software: Linux
Hi Everyone,
Is there any example for DMA data transfer from RAM to RAM in Linux user sapce?
I am using AM57xx EVM.
Regards,
Snehal
Hi Schuyler,
Thanks for your response. Let me clarify what exactly we are trying to achieve here.
There would be huge volume of data on A15 side which needs to be passed to DSP for algo processing and post-processed data will be returned back to A15 for further actions/transfer-to-external-world.
Obviously, messageQ would not be ideal to pass huge chunk of data across the cores, so the general thought is,
1) to use internal memory for algo processing and
2) DMA processed data to SDRAM/OCM
3) access the post processed data through DMA for actions/transfer-to-external-world
According to me this must be a very fundamental architecture. Please educate me if my understanding is not correct.
Do you have an example or guide us on how to do it and use the DMAs? If you think a phone call would save time, I would be more than happy.
Really appreciate your time.
Best,
Raj
Hi Raj,
If you are trying to share data between the A15 and the DSP DMAing is not necessary. The CMEM pool that is mentioned earlier is a memory pool in DDR that is configurable shareable between the A15 and the DSP. This pool alleviates the need to DMA between memory. Once the buffers have the data the pointers can be exchanged between the processors.
There are some video processing examples provided in the SDK that uses the A15 and DSP, these use open source packages such as openCL and openCV. While these example may not be directly applicable to your needs some of the components used for data usage might be.
Please take a look at these links and see if the components used might suit your needs:
Best Regards,
Schuyler
Hi Schuyler,
We tried using cmem, if I use the memory allocated through CMEM fom DSP, I am observing kernel crash.
How to use this memory as shared between DSP and ARM?
Is there any configurations which I am supposed to do from DSP end to accomplish this?
Thanks,
Janardan