Hai,
We are trying to use Processor Expert code for DMA using circular buffer in Nested Transfer mode for DAC.
DAC FIFO is the destination buffer and the source buffer is the 32Kbytes circular buffer.
In DMA_Controller_LDD settings, when circular buffer of(32Kbytes) is enabled with Nested transfer mode
almost last 1Kbytes are not being taken from the circular buffer. When 2Kbytes of circular buffer is
assigned instead of 32Kbytes, the signal obtained is as expected.
Is there any settings we need to do separately to enable 32 Kbytes circular buffer.
Attached PE generated code for the reference.
Kindly let me know if there is any issue.
Regards,
Kiran
Original Attachment has been moved to: bsp_twrk60d100m.zip
Solved! Go to Solution.
Hi,
I did some tests and I see that the solution is to be sure that your buffer is aligned at the same size of the Circular Buffer, if you have a circular buffer of 512 bytes, for example, you need to align your variable at that size.
hope this information can help you.
Regards,
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. It would be nice!
-----------------------------------------------------------------------------------------------------------------------
Hi,
You are compiling your project in a BSP project, did you try this configuration of the DMA in a normal project with Processor Expert? It is possible that this problem is related with alignment issues.
Please try this in a Project with Processor Expert adding just the essential components to try this scenario.
hope this information can help you.
Regards,
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. It would be nice!
-----------------------------------------------------------------------------------------------------------------------