Skip to main content
Senior II
September 13, 2021
Solved

DMA keep sending data

  • September 13, 2021
  • 2 replies
  • 708 views

Hi all,

I want to send 3 bytes with the UART DMA controller

but when this line is executed, the uart sends these 3 bytes endlessly .

Why does the transmitting not stop after 3 bytes ?

HAL_UART_Transmit_DMA(&huart1,(uint8_t *)spi_buf_in,3);

Thank you

Steve

This topic has been closed for replies.
Best answer by TDK

Perhaps the DMA is somehow in circular mode.

2 replies

Tesla DeLorean
Guru
September 13, 2021

Don't know. Is this the only line in the program, or do you configure the DMA and associativity somewhere, or have related call-backs?

Any particular STM32?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
TDK
TDKBest answer
Super User
September 13, 2021

Perhaps the DMA is somehow in circular mode.

"If you feel a post has answered your question, please click ""Accept as Solution""."
sde c.1Author
Senior II
September 14, 2021

that was the case ! thank you 0693W00000Dn4VwQAJ.png