cancel
Showing results for 
Search instead for 
Did you mean: 

UART DMA TX

SGian.1
Senior

Hi there !

Is the first time i wrote at this forum. I start to work with UART and DMA ,and i configurate the buffer in circular mode. I don't understa why when i call the library he continus to send over and over all i have in the buffer , i appearance just send one time .

Please some one can help me to understand ? and there are tutorial or good books help me to come in this new fantastic word ?

Thank you

Sergio

3 REPLIES 3
Amel NASRI
ST Employee

Hi @SGian.1​ ,

Welcome to ST Community!

The article introduced here by @Tilen MAJERLE​  is a reference used by several members.

You will find there the explanations you look for.

If you still have issues, don't hesitate to come back to the Community either with new threads or as a continuity of this one (when related to same initial topic).

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Which STM32 part?

Circular mode means in a continuous loop, you get to update the content, usually the inactive half via the HT and TC (half transfer, transfer complete) interrupts/callbacks.

If you want to send it once, you need to use the Normal mode, and submit a buffer address/size for each transfer, and wait for that to complete before initiating another transfer.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
SGian.1
Senior

Thank you soo much

Sergio