cancel
Showing results for 
Search instead for 
Did you mean: 

DMA keep sending data

sde c.1
Senior II

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Perhaps the DMA is somehow in circular mode.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

Perhaps the DMA is somehow in circular mode.

If you feel a post has answered your question, please click "Accept as Solution".

that was the case ! thank you 0693W00000Dn4VwQAJ.png