Update DMA source buffer before software trigger

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

Update DMA source buffer before software trigger

跳至解决方案
983 次查看
r_poelstra
Contributor II

Hi,

I've configured a USART TX DMA channel (using the graphical config tool) that I trigger from software when bytes are available to be transmitted using:

DMA_DoChannelSoftwareTrigger(DMA0_DMA_BASEADDR, DMA0_LOG_UART_DMA_CHANNEL);

This works fine, but only with a fixed number of bytes each trigger.

How can I update the DMA channel so it knows how many bytes it should transfer?

 

Thanks in advance.

Kind regards,

 

Remco Poelstra

 

0 项奖励
1 解答
958 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Remco Poelstra,

Yes, the DMA only can transfer fixed number of bits.

And a ring buffer DMA maybe suit for you , there is demo"lpcxpresso845max_usart_transfer_rb_dma" under SDK, you can have a look.

 

Regards,

Alice

 

在原帖中查看解决方案

0 项奖励
4 回复数
933 次查看
r_poelstra
Contributor II

Thanks for the reply.

I'll look into the ring buffer example. It might indeed be what I need.

 

Kind regards,

 

Remco Poelstra

 

0 项奖励
959 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Remco Poelstra,

Yes, the DMA only can transfer fixed number of bits.

And a ring buffer DMA maybe suit for you , there is demo"lpcxpresso845max_usart_transfer_rb_dma" under SDK, you can have a look.

 

Regards,

Alice

 

0 项奖励
966 次查看
r_poelstra
Contributor II

Hi,

 

I'm using LPC844.

Kind regards,

 

Remco Poelstra

 

0 项奖励
969 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

Please let us know your chip part number, thus we can assign right engineer for your issue.

Thanks,

Jun Zhang

0 项奖励