how to stop dma and restart it?

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

leo.ni
Posts: 52
Joined: Mon Jun 06, 2016 4:20 am

how to stop dma and restart it?

Wed Feb 22, 2017 5:02 am

Hi,all. i used a custom board based sama5d3-xplained and run ucosii. i faced a program : i start dma to transmit data from i2s port to ram. i can start dma correctly, but don't know how to stop it. Can someone give me some advice? Thanks!
blue_z
Location: USA
Posts: 1509
Joined: Thu Apr 19, 2007 10:15 pm

Re: how to stop dma and restart it?

Thu Feb 23, 2017 1:46 am

Have you studied section 31.6.6, Disabling a Channel Prior to Transfer Completion, of the SoC datasheet?
Otherwise this seems like a XY problem.

Regards
leo.ni
Posts: 52
Joined: Mon Jun 06, 2016 4:20 am

Re: how to stop dma and restart it?

Thu Feb 23, 2017 3:05 am

Thank you very much!i read the datasheet again according what you said,and compared the procedure in the datasheet with the atmel's ASF lib,and found a wapped interface "DMAD_StopTransfer" implemented it already.Thanks again!

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 1 guest