PE DMA Circular buffer issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PE DMA Circular buffer issue

Jump to solution
1,598 Views
kirankunnath
Contributor II

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

0 Kudos
Reply
1 Solution
1,354 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

View solution in original post

0 Kudos
Reply
3 Replies
1,355 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 Kudos
Reply
1,356 Views
adriancano
NXP Employee
NXP Employee

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!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
1,356 Views
adriancano
NXP Employee
NXP Employee

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!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply