Update DMA source buffer before software trigger

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Update DMA source buffer before software trigger

ソリューションへジャンプ
2,324件の閲覧回数
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 解決策
2,299件の閲覧回数
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 返答(返信)
2,274件の閲覧回数
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 件の賞賛
返信
2,300件の閲覧回数
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 件の賞賛
返信
2,307件の閲覧回数
r_poelstra
Contributor II

Hi,

 

I'm using LPC844.

Kind regards,

 

Remco Poelstra

 

0 件の賞賛
返信
2,310件の閲覧回数
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 件の賞賛
返信