Data transfer to memory mapped device from i.MX7

Hi,

We have a chunk of data that we want to transfer to external memory mapped device.
How can we do this using SDMA of i.MX7D ?

Regards
Bipin Kumar

Dear @bipin7301

SDMA is only used for specific drivers such as audio. I’m afraid there is no SDMA support for generic memory transfers.
You can use the functions of the MapMemory library to map the required region and write to it using regular C code.

Regards, Andy

Thanks for the response Andy.

Can you please share any reference code for SDMA module initialisation and usage ?

As you mentioned in your response that we can use MapMemory library to map a required region, so Is there any specific function/way by which we can map the SDMA module and transfer chunk of data to external memory mapped device ?

Regards
Bipin Kumar

Dear @bipin7301

I’m afraid we don’t have any reference code I can give you. The SDMA controller is a powerful, but complex peripheral with its own programming language.

There’s a 230 pages section in the i.MX7Dual reference manual only about the SDMA controller.

You can use the MapMemory library to access the SDMA registers, but the challenge will be to understand how to use these registers.

Regards, Andy