KM34 Modulo seems to stop DMA

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

KM34 Modulo seems to stop DMA

1,637 次查看
sbranover
Contributor I

When I enable the modulo setting on the KM34 the DMA transfer seems to terminate before the transfer is complete.

 

To demonstrate, I've attached a slightly modified version of the DMA memory to memory transfer example.The changes from the original example code are that the buffer is longer and the modulo is enabled.

Original Attachment has been moved to: dma_memory_to_memory.c.zip

标记 (3)
0 项奖励
回复
1 回复

1,355 次查看
sbranover
Contributor I

I figured out that the modulo is in reference to the address in memory and not to the start address. When using GCC you can can use (complete code attached):

__attribute__ ((aligned ()))‍‍
0 项奖励
回复