PE DMA Circular buffer issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PE DMA Circular buffer issue

跳至解决方案
1,605 次查看
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 项奖励
回复
1 解答
1,361 次查看
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 项奖励
回复
3 回复数
1,362 次查看
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 项奖励
回复
1,363 次查看
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 项奖励
回复
1,363 次查看
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 项奖励
回复