I have a large chunks of memory(40k) from which i am transfering data to two small buffer(100Bytes each) using DMA. From these two small buffer i need to transfer data to another memory of size 40k. This both transfer i want to achieve through DMA.
I am using TD chaining to transfer my data to two small buffer. But, source address is not getting incremented even though i am using the TD property to increment the source and destination addresses. Both TD's are(TD & TD) getting filled by the first 100Bytes of the source data and afterwords once it comes back to the TD ,the same 100Bytes of data is again getting transfer from the source(40k). So in that case i am not able to transfer the data more than of first 100 bytes.
To your question: probably you did configure the DMA (with CyDmaChEnable()) to reset the TDs when they are finished. Set the second parameter to 0.
But then the target address also doesn't get set. So what you need is a chained, self-modifying DMA config. Add another DMA that transfers the constanst target base address into the TD that needs to be reset.
Probably you need to look into AN84810 (advanced DMA topics): http://www.cypress.com/?rID=82680 , it has a chapter about modifying a DMA dynamically.
Btw: whats your use case? Why the intermediate buffer, and not a direct transfer?
Some useful DMA references -
http://www.cypress.com/?rID=37793 AN52705 Getting Started with DMA
http://www.cypress.com/?rID=82680 AN84810 PSoC® 3 and PSoC 5LP Advanced DMA Topics
http://www.cypress.com/?rID=44335 AN61102 PSoC® 3 and PSoC 5LP - ADC Data Buffering Using DMA
http://video.cypress.com/video-library/search/dma/ Videos on DMA
https://www.youtube.com/results?search_query=dma+psoc Videos on DMA (some overlap)
@hli: Yes i am using extenal memory buffer from where i am transfering 100Bytes of data to each two small buffer and from those two small buffer i am transfering 200bytes to the destination buffer. Similarly i want to transfer 200bytes every time from external memory to intermediate buffer and then to the destination.
I already have tried with these options but it doesn't work.
Just changing the second parameter of CyDmaChEnable() won't work alone. As I wrote - you need a self-modifying DMA configuration.